incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r938730 - /incubator/lcf/trunk/modules/framework/scripts/executecommand.sh
Date Wed, 28 Apr 2010 00:00:25 GMT
Author: kwright
Date: Wed Apr 28 00:00:24 2010
New Revision: 938730

URL: http://svn.apache.org/viewvc?rev=938730&view=rev
Log:
Changes to allow cygwin to work

Modified:
    incubator/lcf/trunk/modules/framework/scripts/executecommand.sh

Modified: incubator/lcf/trunk/modules/framework/scripts/executecommand.sh
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/scripts/executecommand.sh?rev=938730&r1=938729&r2=938730&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/scripts/executecommand.sh (original)
+++ incubator/lcf/trunk/modules/framework/scripts/executecommand.sh Wed Apr 28 00:00:24 2010
@@ -1,5 +1,11 @@
 #!/bin/bash -e
 
+if [[ $OSTYPE == "cygwin" ]] ; then
+    PATHSEP=";"
+else
+    PATHSEP=":"
+fi
+
 #Make sure environment variables are properly set
 if [ -e "$JAVA_HOME"/bin/java ] ; then
     if [ -f "$LCF_HOME"/properties.ini ] ; then
@@ -8,7 +14,7 @@ if [ -e "$JAVA_HOME"/bin/java ] ; then
         CLASSPATH=""
         for filename in $(ls -1 "$LCF_HOME"/processes/jar) ; do
             if [ -n "$CLASSPATH" ] ; then
-                CLASSPATH="$CLASSPATH":"$LCF_HOME"/processes/jar/"$filename"
+                CLASSPATH="$CLASSPATH""$PATHSEP""$LCF_HOME"/processes/jar/"$filename"
             else
                 CLASSPATH="$LCF_HOME"/processes/jar/"$filename"
             fi



Mime
View raw message