Skip to content

Commit

Permalink
Merge pull request #369 from henrikengstrom/wip/h3nk3-windows-bat
Browse files Browse the repository at this point in the history
Handles OpenJDK version output on Windows
  • Loading branch information
muuki88 committed Oct 4, 2014
2 parents bf6373d + ed9c8a5 commit 157f858
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ if "%_JAVACMD%"=="" set _JAVACMD=java

rem Detect if this java is ok to use.
for /F %%j in ('"%_JAVACMD%" -version 2^>^&1') do (
if %%~j==Java set JAVAINSTALLED=1
if %%~j==java set JAVAINSTALLED=1
if %%~j==openjdk set JAVAINSTALLED=1
)

rem BAT has no logical or, so we do it OLD SCHOOL! Oppan Redmond Style
Expand Down

0 comments on commit 157f858

Please sign in to comment.