Changeset 22075 for main/trunk/greenstone3/gs3-setup.bat
- Timestamp:
- 2010-05-11T17:16:58+12:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/gs3-setup.bat
r22069 r22075 46 46 47 47 :: a little dynamic set cp stuff 48 if exist !TMP!\setcp.bat del !TMP!\setcp.bat 49 for %%j in (!TOMCAT_HOME!\common\endorsed\*.jar) do echo set CLASSPATH=%%CLASSPATH%%;%%j>> !TMP!\setcp.bat 50 for %%j in (!TOMCAT_HOME!\lib\*.jar) do echo set CLASSPATH=%%CLASSPATH%%;%%j>> !TMP!\setcp.bat 48 if exist "!TMP!\setcp.bat" del "!TMP!\setcp.bat" 49 50 :: http://ss64.com/nt/for_cmd.html, how to deal with spaces in the file list in a for command 51 :: Note that TOMCAT_HOME\common\endorsed only exists for Tomcat 5, not Tomcat 6 52 :: (where it contains xercesImpl.jar and xml-apis.jar which aren't there in Tomcat 6) 53 if exist "!TOMCAT_HOME!\common\endorsed\*.jar" for /f %%j in ('dir/b ^"!TOMCAT_HOME!\common\endorsed\*.jar^"') do echo set CLASSPATH=%%CLASSPATH%%;%%TOMCAT_HOME%%\common\endorsed\%%j>> !TMP!\setcp.bat 54 for /f %%j in ('dir/b ^"!TOMCAT_HOME!\lib\*.jar^"') do echo set CLASSPATH=%%CLASSPATH%%;%%TOMCAT_HOME%%\lib\%%j>> !TMP!\setcp.bat 55 51 56 if exist !TMP!\setcp.bat call !TMP!\setcp.bat 52 57 if exist !TMP!\setcp.bat del !TMP!\setcp.bat … … 144 149 echo GSDL3HOME : !GSDL3HOME! 145 150 echo JAVA : !RUNJAVA! 151 146 152 if "!ANT_HOME!" == "" ( 147 153 echo. … … 149 155 echo Please make sure you have Ant version 1.7.1 or higher installed 150 156 echo Then set ANT_HOME to the ant installation folder 151 echo and add the path to its bin folder to the PATH 157 echo and add the path to its bin folder to the PATH environment variable 152 158 ) else ( 153 159 echo ANT_HOME : !ANT_HOME! … … 158 164 :: Restore global variables that would otherwise be lost at script's end due to their having been initialised in a 159 165 :: set local/set enabledelayedexpansion section. See http://ss64.com/nt/endlocal.html 160 endlocal & set RUNJAVA=%RUNJAVA% 161 162 set PATH=%PATH% 163 set GSDL3HOME=%GSDL3HOME% 164 set GSDL3SRCHOME=%GSDL3SRCHOME% 165 set JAVA_HOME=%JAVA_HOME% 166 set JRE_HOME=%JRE_HOME% 167 set ANT_HOME=%ANT_HOME% 168 set RUNJAVA=%RUNJAVA% 166 endlocal & set RUNJAVA=%RUNJAVA%& set PATH=%PATH%& set GSDL3HOME=%GSDL3HOME%& set GSDL3SRCHOME=%GSDL3SRCHOME%& set JAVA_HOME=%JAVA_HOME%& set JRE_HOME=%JRE_HOME%& set ANT_HOME=%ANT_HOME%& set CLASSPATH=%CLASSPATH% 169 167 170 168 :end
Note:
See TracChangeset
for help on using the changeset viewer.