2 REM Windows Hatch Execution Script
3 REM @echo off required for STDIO to work with the browser.
5 REM Assume java executables are in our path
10 REM Optionally override the java path
11 REM SET JAVA_HOME="C:\Program Files\Java\jdk1.8.0_111"
12 REM SET JAVA=%JAVA_HOME%\bin\java
13 REM SET JAVAC=%JAVA_HOME%\bin\javac
14 REM SET JAR=%JAVA_HOME%\bin\jar
17 IF "%1" == "compile" (
19 %JAVAC% -cp "lib\*" -Xdiags:verbose^
20 -d lib src\org\evergreen_ils\hatch\*.java
22 %JAR% cf lib\hatch.jar -C lib org
30 -Djava.util.logging.config.file=logging.properties^
31 org.evergreen_ils.hatch.TestHatch | %JAVA% -cp "lib\*"^
32 -Djava.util.logging.config.file=logging.properties^
33 org.evergreen_ils.hatch.Hatch | %JAVA% -cp "lib\*"^
34 -Djava.util.logging.config.file=logging.properties^
35 org.evergreen_ils.hatch.TestHatch receive
37 ) ELSE ( REM No options means run Hatch
40 -Djava.util.logging.config.file=logging.properties^
41 org.evergreen_ils.hatch.Hatch