Changeset 6183 for trunk


Ignore:
Timestamp:
2003-12-09T13:58:30+13:00 (20 years ago)
Author:
mdewsnip
Message:

Added some special (ie. nasty) code to fix the javac version detection with the new Java 1.4.2 compiler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/makegli.bat

    r5927 r6183  
    5959
    6060:checkVer
    61 
    6261:: Check that the version of Javac is new enough (1.4.0 or higher) to compile the GLI
    63 "%JAVACPATH%\javac.exe" -Xstdout nul -target 1.4
     62"%JAVACPATH%\javac.exe" -Xstdout javacchk.tmp -target 1.4
    6463if not errorlevel 1 goto makeGLI
    65     echo.
    66     echo The version of the Java Development Kit you have installed is too old
    67     echo to compile the Greenstone Librarian Interface. Please install a new
    68     echo version of the Java SDK (version 1.4 or newer) and rerun this script.
    69     goto exit
     64    :: Nasty special code for javac 1.4.2, since it complains about "no source files"
     65    find "javac: no source files" javacchk.tmp >nul
     66    if not errorlevel 1 goto makeGLI
     67        del javacchk.tmp
     68        echo.
     69        echo The version of the Java Development Kit you have installed is too old
     70        echo to compile the Greenstone Librarian Interface. Please install a new
     71        echo version of the Java SDK (version 1.4 or newer) and rerun this script.
     72        goto exit
    7073
    7174
    7275:makeGLI
    7376:: ---- Compile the GLI ----
     77del javacchk.tmp
    7478echo.
    7579
Note: See TracChangeset for help on using the changeset viewer.