summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRajith Muditha Attapattu <rajith@apache.org>2008-05-26 17:58:50 +0000
committerRajith Muditha Attapattu <rajith@apache.org>2008-05-26 17:58:50 +0000
commitc2441211409b15fa125323549281a28d3fbf2f55 (patch)
treeb0cfead0bc42beb299fc25202c3f61f65e34c718
parent8d279700e2470c7091ac3cd0b7e945f0d02ca28c (diff)
downloadqpid-python-c2441211409b15fa125323549281a28d3fbf2f55.tar.gz
I am applying the patch provided by Senaka attached to QPID-968
We need to get rid of the defaults that points to rhm. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@660254 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/java/client/example/src/main/java/README.txt17
-rwxr-xr-xqpid/java/client/example/src/main/java/runSample.sh2
2 files changed, 18 insertions, 1 deletions
diff --git a/qpid/java/client/example/src/main/java/README.txt b/qpid/java/client/example/src/main/java/README.txt
new file mode 100644
index 0000000000..c8fe6a76ad
--- /dev/null
+++ b/qpid/java/client/example/src/main/java/README.txt
@@ -0,0 +1,17 @@
+In order to use the runSample script, you are required to set two environment
+variables, QPID_HOME and QPID_SAMPLE. If not the default values will be used.
+
+QPID_HOME
+---------
+This is the distribution directory. You would have set the QPID_HOME when you
+started the Qpid Java broker.
+
+default: /usr/share/java/
+
+QPID_SAMPLE
+-----------
+This is the parent directory of the directory in which you find the runSample.sh
+(Ex:- $QPID_SRC_HOME/java/client/example/src/main)
+
+default: /usr/share/doc/rhm-0.2
+
diff --git a/qpid/java/client/example/src/main/java/runSample.sh b/qpid/java/client/example/src/main/java/runSample.sh
index 23bde52c44..af0dd3ba6c 100755
--- a/qpid/java/client/example/src/main/java/runSample.sh
+++ b/qpid/java/client/example/src/main/java/runSample.sh
@@ -39,7 +39,7 @@ javac -cp "$CLASSPATH" -sourcepath "$QPID_SAMPLE" -d . `find $QPID_SAMPLE -name
CLASSPATH="$CLASSPATH$DIVIDER$."
# Set VM parameters
-QPID_PARAM="$QPID_PARAM -Dlog4j.configuration=file://$QPID_SAMPLE/java/log4j.xml"
+QPID_PARAM="$QPID_PARAM -Dlog4j.configuration=file://$PWD/log4j.xml"
# Check if the user supplied a sample classname