LP#1743604 - Not all Java binaries like "--dry-run" so use "-version" user/csharp/lp-1743604-java-path
authorChris Sharp <csharp@georgialibraries.org>
Mon, 29 Jan 2018 14:17:25 +0000 (09:17 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 29 Jan 2018 14:17:25 +0000 (09:17 -0500)
When doing the "are you there?" test in hatch.bat, my Windows 7 32-bit
VM's installed version of Java (1.8.0_161)did not recognize "--dry-run"
as a valid option.  Changing the test to a simple "java -version" works.

Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
hatch.bat

index cb3cc6b..1b208f8 100755 (executable)
--- a/hatch.bat
+++ b/hatch.bat
@@ -19,13 +19,13 @@ REM SET JAVAC=%JAVA_HOME%\bin\javac
 REM SET JAR=%JAVA_HOME%\bin\jar
 
 REM Is anyone there?
-%JAVA% --dry-run -cp "lib\*" org.evergreen_ils.hatch.Hatch 2>nul
+%JAVA% -version 2>nul
 
 IF %ERRORLEVEL% EQU 0 GOTO Huzzah
 
 REM Are you still there?
 SET JAVA=%PROGRAMDATA%\Oracle\Java\javapath\java
-%JAVA% --dry-run -cp "lib\*" org.evergreen_ils.hatch.Hatch 2>nul
+%JAVA% -version 2>nul
 
 IF %ERRORLEVEL% EQU 0 GOTO Huzzah