diff options
-rwxr-xr-x | java/client/example/runSample.sh | 14 |
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 |