summaryrefslogtreecommitdiff
path: root/java/common/bin/qpid-run
diff options
context:
space:
mode:
Diffstat (limited to 'java/common/bin/qpid-run')
-rw-r--r--java/common/bin/qpid-run11
1 files changed, 6 insertions, 5 deletions
diff --git a/java/common/bin/qpid-run b/java/common/bin/qpid-run
index 31ae4ff5c2..7db32acebb 100644
--- a/java/common/bin/qpid-run
+++ b/java/common/bin/qpid-run
@@ -15,6 +15,12 @@
# limitations under the License.
#
+# Test if we're running on cygwin.
+cygwin=false
+if [[ "$(uname -a | fgrep Cygwin)" != "" ]]; then
+ cygwin=true
+fi
+
die() {
if [[ $1 = -usage ]]; then
shift
@@ -94,11 +100,6 @@ usage() {
sed "s/^--$//"
}
-cygwin=false
-if [[ "$(uname -a | fgrep Cygwin)" != "" ]]; then
- cygwin=true
-fi
-
export EXTERNAL_CLASSPATH=$CLASSPATH
unset CLASSPATH