Changeset 5621


Ignore:
Timestamp:
2003-10-14T14:04:11+13:00 (21 years ago)
Author:
mdewsnip
Message:

Added some special 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.sh

    r5600 r5621  
    3333javacOK=`$javacpath -target 1.4 2>&1`
    3434if [ ! "$javacOK" = "" ]; then
    35     echo
    36     echo "The version of the Java Development Kit you have installed is too old"
    37     echo "to compile the Greenstone Librarian Interface. Please install a new"
    38     echo "version of the Java SDK (version 1.4 or newer) and rerun this script."
    39     exit 1
     35    # Special code for javac 1.4.2, since it complains about "no source files"
     36    javacOK142=`$javacpath -target 1.4 2>&1 | grep "javac: no source files"`
     37    if [ "$javacOK142" = "" ]; then
     38    echo
     39    echo "The version of the Java Development Kit you have installed is too old"
     40    echo "to compile the Greenstone Librarian Interface. Please install a new"
     41    echo "version of the Java SDK (version 1.4 or newer) and rerun this script."
     42    exit 1
     43    fi
    4044fi
    4145
Note: See TracChangeset for help on using the changeset viewer.