Changeset 25211 for gs2-extensions/pdf-box
- Timestamp:
- 2012-03-12T21:18:11+13:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs2-extensions/pdf-box/trunk/java/perllib/plugins/PDFBoxConverter.pm
r24762 r25211 59 59 } 60 60 else { 61 # test to see if java is in path 62 my $cmd = "java"; 61 # test to see if java is in path 62 # Need to run java -version instead of just java, since the %ERRORLEVEL% returned 63 # for `java` (which is checked below for failure of the command) is 0 for JDK 1.6* 64 # while %ERRORLEVEL% is 1 for JDK 1.7* 65 # If `java -version` is run however, %ERRORLEVEL% returned is 0 if java is 66 # installed, regardless of whether the JDK version is 1.6* or 1.7*. 67 my $cmd = "java -version"; 63 68 if ($ENV{'GSDLOS'} =~ /^windows/i) { 64 69 $cmd .= " >nul 2>&1"; # java 2>&1 >null or java >null 2>&1 both work (%ERRORLEVEL% is 0)
Note:
See TracChangeset
for help on using the changeset viewer.