summaryrefslogtreecommitdiff
path: root/qpid/tools/src/java/bin/ConnectionAudit.sh
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/tools/src/java/bin/ConnectionAudit.sh')
-rwxr-xr-xqpid/tools/src/java/bin/ConnectionAudit.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/qpid/tools/src/java/bin/ConnectionAudit.sh b/qpid/tools/src/java/bin/ConnectionAudit.sh
index b2f494c025..8675a49c14 100755
--- a/qpid/tools/src/java/bin/ConnectionAudit.sh
+++ b/qpid/tools/src/java/bin/ConnectionAudit.sh
@@ -18,6 +18,12 @@
# under the License.
#
+# Test if we're running on Cygwin.
+cygwin=false;
+case "`uname`" in
+ CYGWIN*) cygwin=true;;
+esac
+
WHEREAMI=`dirname $0`
if [ -z "$QMF2_HOME" ]; then
export QMF2_HOME=`cd $WHEREAMI/../ && pwd`
@@ -27,6 +33,11 @@ QMF2_LIBS=$QMF2_HOME/build/lib
CLASSPATH=$QMF2_LIBS/qpid-client-patch.jar:$CLASSPATH:$QMF2_LIBS/qmf2.jar
+# If we're on Cygwin we need to prepend the CLASSPATH with cygpath.
+if $cygwin; then
+ CLASSPATH=$(cygpath -wp $CLASSPATH)
+fi
+
# Get the log level from the AMQJ_LOGGING_LEVEL environment variable.
if [ -n "$AMQJ_LOGGING_LEVEL" ]; then
PROPERTIES=-Damqj.logging.level=$AMQJ_LOGGING_LEVEL