incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r938285 - /incubator/lcf/trunk/modules/framework/scripts/executecommand.sh
Date Tue, 27 Apr 2010 01:33:01 GMT
Author: kwright
Date: Tue Apr 27 01:33:00 2010
New Revision: 938285

URL: http://svn.apache.org/viewvc?rev=938285&view=rev
Log:
Fix (1) quotation errors in define loading, and (2) lack of reference to properties.ini

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=938285&r1=938284&r2=938285&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/scripts/executecommand.sh (original)
+++ incubator/lcf/trunk/modules/framework/scripts/executecommand.sh Tue Apr 27 01:33:00 2010
@@ -6,7 +6,7 @@ if [ -e "$JAVA_HOME"/bin/java ] ; then
     
         # Build the classpath
         CLASSPATH=""
-        for filename in $(ls -1 "$LCF_HOME/processes/jar") ; do
+        for filename in $(ls -1 "$LCF_HOME"/processes/jar) ; do
             if [ -n "$CLASSPATH" ] ; then
                 CLASSPATH="$CLASSPATH":"$LCF_HOME"/processes/jar/"$filename"
             else
@@ -15,10 +15,10 @@ if [ -e "$JAVA_HOME"/bin/java ] ; then
         done
         
         # Build the defines
-        DEFINES=""
+        DEFINES="-Dorg.apache.lcf.configfile=$LCF_HOME/properties.ini"
         if [ -e "$LCF_HOME/processes/define" ] ; then
-            for filename in $(ls -1 "$LCF_HOME/processes/define") ; do
-                DEFINEVAR=-D"$filename"=$(cat "$LCF_HOME/processes/define/"$filename")
+            for filename in $(ls -1 "$LCF_HOME"/processes/define) ; do
+                DEFINEVAR=-D"$filename"=$(cat "$LCF_HOME"/processes/define/"$filename")
                 DEFINES="$DEFINES $DEFINEVAR"
             done
         fi



Mime
View raw message