diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2008-07-30 11:49:58 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2008-07-30 11:49:58 +0000 |
| commit | fc3f14b551d86d617699ccb07b72f3bacf500f9b (patch) | |
| tree | 10b72d6d62c485dcb5ae957bf5df506fa83b9c40 /qpid/java/broker | |
| parent | 91ff3d69b863559dd3af91d0400aee08467f2092 (diff) | |
| download | qpid-python-fc3f14b551d86d617699ccb07b72f3bacf500f9b.tar.gz | |
added defaulting of QPID_HOME
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@680987 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/broker')
| -rw-r--r-- | qpid/java/broker/bin/qpid-passwd | 5 | ||||
| -rw-r--r-- | qpid/java/broker/bin/qpid-server | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/qpid/java/broker/bin/qpid-passwd b/qpid/java/broker/bin/qpid-passwd index f046252522..f425eed72b 100644 --- a/qpid/java/broker/bin/qpid-passwd +++ b/qpid/java/broker/bin/qpid-passwd @@ -18,6 +18,11 @@ # under the License.
#
+if [ -z "$QPID_HOME" ]; then
+ export QPID_HOME=$(dirname $(dirname $(readlink -f $0)))
+ export PATH=${PATH}:${QPID_HOME}/bin
+fi
+
# Set classpath to include Qpid jar with all required jars in manifest
QPID_LIBS=$QPID_HOME/lib/qpid-incubating.jar
diff --git a/qpid/java/broker/bin/qpid-server b/qpid/java/broker/bin/qpid-server index d0198f8dc9..30c54f18cd 100644 --- a/qpid/java/broker/bin/qpid-server +++ b/qpid/java/broker/bin/qpid-server @@ -18,6 +18,11 @@ # under the License. # +if [ -z "$QPID_HOME" ]; then + export QPID_HOME=$(dirname $(dirname $(readlink -f $0))) + export PATH=${PATH}:${QPID_HOME}/bin +fi + # Set classpath to include Qpid jar with all required jars in manifest QPID_LIBS=$QPID_HOME/lib/qpid-incubating.jar:$QPID_HOME/lib/bdbstore-launch.jar |
