incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r938013 - /incubator/lcf/trunk/modules/framework/scripts/executecommand.bat
Date Mon, 26 Apr 2010 11:47:12 GMT
Author: kwright
Date: Mon Apr 26 11:47:12 2010
New Revision: 938013

URL: http://svn.apache.org/viewvc?rev=938013&view=rev
Log:
Update script to check properly for missing variables, and get the quotations right (I hope)...

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

Modified: incubator/lcf/trunk/modules/framework/scripts/executecommand.bat
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/scripts/executecommand.bat?rev=938013&r1=938012&r2=938013&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/scripts/executecommand.bat (original)
+++ incubator/lcf/trunk/modules/framework/scripts/executecommand.bat Mon Apr 26 11:47:12 2010
@@ -1,12 +1,22 @@
 @echo off
 rem check that JAVA_HOME and LCF_HOME are set
+if not exist "%JAVA_HOME%\bin\java.exe" goto nojavahome
+if not exist "%LCF_HOME%\properties.ini" goto nolcfhome
 rem save existing path here
 set OLDDIR=%CD%
-cd %LCF_HOME%\processes
+cd "%LCF_HOME%\processes"
 set CLASSPATH=.
 for %%f in (jar/*) do call script\setclasspath.bat %%f
 set JAVADEFINES=
 for %%g in (define/*) do call script\setdefine.bat %%g
 rem restore old path here
-cd %OLDDIR%
-"%JAVA_HOME%\bin\java" -Dorg.apache.lcf.configfile=%LCF_HOME%\properties.ini %JAVADEFINES%
-classpath %CLASSPATH% %1 %2 %3 %4 %5 %6 %7 %8 %9
+cd "%OLDDIR%"
+"%JAVA_HOME%\bin\java" "-Dorg.apache.lcf.configfile=%LCF_HOME%\properties.ini" %JAVADEFINES%
-classpath "%CLASSPATH%" %1 %2 %3 %4 %5 %6 %7 %8 %9
+goto done
+:nojavahome
+echo Environment variable JAVA_HOME is not set properly.
+goto done
+:nolcfhome
+echo Environment variable LCF_HOME is not set properly.
+goto done
+:done



Mime
View raw message