summaryrefslogtreecommitdiff
path: root/java/client/example
diff options
context:
space:
mode:
authorArnaud Simon <arnaudsimon@apache.org>2007-12-06 18:21:35 +0000
committerArnaud Simon <arnaudsimon@apache.org>2007-12-06 18:21:35 +0000
commit8a3e8a01188a500401196601d78ecf146ab8ba66 (patch)
treea9686e33ab2378e2f2e8c867f09771bdaf3201eb /java/client/example
parent61c9a1fcf482e1e5f3be217cc08bce968265e1bc (diff)
downloadqpid-python-8a3e8a01188a500401196601d78ecf146ab8ba66.tar.gz
Changed output path to .
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@601802 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/client/example')
-rwxr-xr-xjava/client/example/runSample.sh14
1 files changed, 6 insertions, 8 deletions
diff --git a/java/client/example/runSample.sh b/java/client/example/runSample.sh
index 2cfe8864d3..ac2cbcd803 100755
--- a/java/client/example/runSample.sh
+++ b/java/client/example/runSample.sh
@@ -1,8 +1,8 @@
#!/bin/bash
# Work out the CLASSPATH divider
-UNAME=`uname -s`
-case $UNAME in
+UNAME=`uname -s`
+case $UNAME in
CYGWIN*)
DIVIDER=";"
;;
@@ -31,14 +31,12 @@ echo "Using QPID_SAMPLE: $QPID_SAMPLE"
# set the CLASSPATH
CLASSPATH=`find "$QPID_HOME" -name '*.jar' | tr '\n' "$DIVIDER"`
-#create output dir
-mkdir $QPID_SAMPLE/classes
-# compile the samples
-javac -cp "$CLASSPATH" -sourcepath "$QPID_SAMPLE" -d "$QPID_SAMPLE/classes/" `find $QPID_SAMPLE -name '*.java'`
+# compile the samples
+javac -cp "$CLASSPATH" -sourcepath "$QPID_SAMPLE" -d . `find $QPID_SAMPLE -name '*.java'`
# Add output classes to CLASSPATH
-CLASSPATH="$CLASSPATH$DIVIDER$QPID_SAMPLE/classes"
+CLASSPATH="$CLASSPATH$DIVIDER$."
# Check if the user supplied a sample classname
@@ -48,4 +46,4 @@ then
exit;
else
java -cp $CLASSPATH $*
-fi
+fi \ No newline at end of file