summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--java/client/example/src/main/java/README.txt17
-rwxr-xr-xjava/client/example/src/main/java/runSample.sh2
2 files changed, 18 insertions, 1 deletions
diff --git a/java/client/example/src/main/java/README.txt b/java/client/example/src/main/java/README.txt
new file mode 100644
index 0000000000..c8fe6a76ad
--- /dev/null
+++ b/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/java/client/example/src/main/java/runSample.sh b/java/client/example/src/main/java/runSample.sh
index 23bde52c44..af0dd3ba6c 100755
--- a/java/client/example/src/main/java/runSample.sh
+++ b/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