Ignore:
Timestamp:
2024-01-10T10:46:35+13:00 (5 months ago)
Author:
davidb
Message:

Extra checking added in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/ext-cli/get-selfcontained-mvn.sh

    r36570 r38512  
    55selfcon_ext=selfcontained-mvn
    66installed_dir=${selfcon_ext}/apache-maven
     7
     8if [ ! -d selfcontained-jdk ] ; then
     9    echo ""
     10    echo "Checking for java ..."
     11    command -v java
     12
     13    if [ $? != 0 ] ; then
     14    echo ""
     15    echo "Failed to find 'java'"
     16    echo "After 5 seconds, initiating: "
     17    echo ""
     18    echo "    ./get-selfcontained-jdk.sh"
     19    echo "[Press ^C to stop]"
     20    sleep 5
     21    ./get-selfcontained-jdk.sh
     22    else
     23    echo ""
     24    echo "Detected 'java' but it is not the Greenstone3 supplied 'selfcontained-jdk'"
     25    echo "=> Recommend running:"
     26    echo ""
     27    echo "    ./get-selfcontained-jdk.sh"
     28    echo ""
     29    echo "After 5 seconds, continuing with getting ant"
     30    echo "[Press ^C to stop]"
     31    sleep 5
     32    fi
     33fi
    734
    835echo ""
Note: See TracChangeset for help on using the changeset viewer.