Ignore:
Timestamp:
2020-11-26T14:15:45+13:00 (3 years ago)
Author:
kjdon
Message:

when testing on catalina, which has no java, we are setting JRE_HOME. It turns out that ant needs JAVA_HOME to be set, so we'll set JAVA_HOME to the JRE_HOME.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/gs3-setup.sh

    r34568 r34569  
    464464    addtopath PATH "$JRE_HOME/bin"
    465465
     466    # ant needs a JAVA_HOME, so set that too, to the JRE
     467    export JAVA_HOME="$JRE_HOME"
     468   
    466469    BUNDLED_JRE="`pwd`/packages/jre"   
    467470    if [[ "$JRE_HOME" = *"$BUNDLED_JRE"* ]]; then
    468471    msg="the bundled"
    469472    fi
    470 
    471     echo "  - Exported JRE_HOME to $msg $JRE_HOME"
     473   
     474    echo "  - Exported JRE_HOME and JAVA_HOME to $msg $JRE_HOME"
    472475  else
    473476    export JAVA_HOME="$1"
Note: See TracChangeset for help on using the changeset viewer.