From dfa91912e18d40fc489816b5644c45273be01dea Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 20 Jan 2017 11:52:33 -0500 Subject: [PATCH] LP#1646166 Hatch Windows compiler creates hatch.jar Signed-off-by: Bill Erickson --- hatch.bat | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/hatch.bat b/hatch.bat index d96c2ff..2e73782 100755 --- a/hatch.bat +++ b/hatch.bat @@ -4,27 +4,31 @@ REM @echo off required for STDIO to work with the browser. SET JAVA_HOME="C:\Program Files\Java\jdk1.8.0_111" SET JAVA=%JAVA_HOME%\bin\java SET JAVAC=%JAVA_HOME%\bin\javac +SET JAR=%JAVA_HOME%\bin\jar IF "%1" == "compile" ( %JAVAC% -cp "lib\*" -Xdiags:verbose^ -d lib src\org\evergreen_ils\hatch\*.java + %JAR% cf lib\hatch.jar -C lib org + rd /s /q lib\org + ) ELSE ( IF "%1" == "test" ( - %JAVA% -cp "lib\*;lib"^ + %JAVA% -cp "lib\*"^ -Djava.util.logging.config.file=logging.properties^ - org.evergreen_ils.hatch.TestHatch | %JAVA% -cp "lib\*;lib"^ + org.evergreen_ils.hatch.TestHatch | %JAVA% -cp "lib\*"^ -Djava.util.logging.config.file=logging.properties^ - org.evergreen_ils.hatch.Hatch | %JAVA% -cp "lib\*;lib"^ + org.evergreen_ils.hatch.Hatch | %JAVA% -cp "lib\*"^ -Djava.util.logging.config.file=logging.properties^ org.evergreen_ils.hatch.TestHatch receive ) ELSE ( REM No options means run Hatch - %JAVA% -cp "lib\*;lib"^ + %JAVA% -cp "lib\*"^ -Djava.util.logging.config.file=logging.properties^ org.evergreen_ils.hatch.Hatch -- 2.11.0