instance1.bat | instance1.bat | |||
---|---|---|---|---|
@echo off | @echo off | |||
if not exist "%JAVA_HOME%\bin\java.exe" ( | ||||
echo "Please set JAVA_HOME" | ||||
exit /b 1 | ||||
) | ||||
rem Set Quartz to the base directory of the Quartz Distribution | rem Set Quartz to the base directory of the Quartz Distribution | |||
@SET WD=%~d0%~p0 | @SET WD=%~d0%~p0 | |||
@SET QUARTZ=%WD%..\.. | @SET QUARTZ=%WD%..\.. | |||
@rem setup the class path... | @rem setup the class path... | |||
CALL "%WD%..\bin\buildcp.bat" | CALL "%WD%..\bin\buildcp.bat" | |||
SET QUARTZ_CP=%TMP_CP% | SET QUARTZ_CP=%TMP_CP% | |||
rem !!!!!!! Please read important information. !!!!!! | rem !!!!!!! Please read important information. !!!!!! | |||
rem If "java" is not in your path, please set the path | rem If "java" is not in your path, please set the path | |||
rem for Java 2 Runtime Environment in the path variable below | rem for Java 2 Runtime Environment in the path variable below | |||
rem for example : | rem for example : | |||
rem @SET PATH=D:\jdk1.3.1;%PATH% | rem @SET PATH=D:\jdk1.6.0_18;%PATH% | |||
rem | rem | |||
rem a configuration file for log4j logging | rem a configuration file for log4j logging | |||
@SET LOG4J_PROPS="-Dlog4j.configuration=file:%WD%log4j.xml" | @SET LOG4J_PROPS="-Dlog4j.configuration=file:%WD%log4j.xml" | |||
rem Set the location and name of the quartz.properties file | rem Set the location and name of the quartz.properties file | |||
@SET QUARTZ_PROPS="-Dorg.quartz.properties=%WD%instance1.properties" | @SET QUARTZ_PROPS="-Dorg.quartz.properties=%WD%instance1.properties" | |||
rem Set the path to your Terracotta server home here | rem Set the path to your Terracotta server home here | |||
@SET TC_HOME=%WD%..\..\.. | @SET TC_HOME=%WD%..\..\.. | |||
skipping to change at line 40 | skipping to change at line 45 | |||
) | ) | |||
dir /b "%TC_HOME%\common\terracotta-toolkit*.jar" > temp.tmp | dir /b "%TC_HOME%\common\terracotta-toolkit*.jar" > temp.tmp | |||
FOR /F %%I IN (temp.tmp) DO SET TC_CP="%TC_HOME%\common\%%I";%TC_CP% | FOR /F %%I IN (temp.tmp) DO SET TC_CP="%TC_HOME%\common\%%I";%TC_CP% | |||
del temp.tmp | del temp.tmp | |||
dir /b "%TC_HOME%\quartz\quartz-terracotta*.jar" > temp.tmp | dir /b "%TC_HOME%\quartz\quartz-terracotta*.jar" > temp.tmp | |||
FOR /F %%I IN (temp.tmp) DO SET TC_CP="%TC_HOME%\quartz\%%I";%TC_CP% | FOR /F %%I IN (temp.tmp) DO SET TC_CP="%TC_HOME%\quartz\%%I";%TC_CP% | |||
del temp.tmp | del temp.tmp | |||
"java" -cp %QUARTZ_CP%;%TC_CP% %QUARTZ_PROPS% %LOG4J_PROPS% org.quartz.exam ples.example15.ClusterExample %1 | "%JAVA_HOME%\bin\java.exe" -cp %QUARTZ_CP%;%TC_CP% %QUARTZ_PROPS% %LOG4J_PR OPS% -Dtc.install-root=%TC_HOME% org.quartz.examples.example15.ClusterExamp le %1 | |||
End of changes. 3 change blocks. | ||||
1 lines changed or deleted | 6 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |