From 8a3e8a01188a500401196601d78ecf146ab8ba66 Mon Sep 17 00:00:00 2001 From: Arnaud Simon Date: Thu, 6 Dec 2007 18:21:35 +0000 Subject: Changed output path to . git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@601802 13f79535-47bb-0310-9956-ffa450edef68 --- java/client/example/runSample.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'java/client/example') 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 -- cgit v1.2.1