You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2010/04/28 02:00:25 UTC
svn commit: r938730 -
/incubator/lcf/trunk/modules/framework/scripts/executecommand.sh
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