Changeset 1073 for trunk/script


Ignore:
Timestamp:
06/01/16 22:57:48 (8 years ago)
Author:
davidb
Message:

Added in check for EXPEDITEE_FILESYSTEM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/script/expeditee

    r1072 r1073  
    115115   custom_vm_args="-Xdock:name=$PROGABBR"
    116116fi
    117    
     117
     118
     119cygwin_detected=0
     120cygpath -h 2>/dev/null
     121if [ $? == 0 ] ; then
     122  cygwin_detected=1
     123fi
     124
    118125#"$javapath" -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar:lib/rsyntaxtextarea.jar $custom_vm_args org.greenstone.gatherer.GathererProg -gsdl "$GSDLHOME" -gsdlos $GSDLOS -gsdl3 "$GSDL3HOME" -gsdl3src "$GSDL3SRCHOME" $*
    119126 
    120 
    121127
    122128jars='jars/JEP.jar:jars/JFreeCharts.jar:jars/activation.jar:jars/cobra.jar:jars/ext:jars/iText-2.1.3.jar:jars/jazzy-core.jar:jars/jcommon-1.0.13.jar:jars/js.jar:jars/lobo-pub.jar:jars/lobo.jar:jars/mail.jar:jars/xercesImpl.jar'
     
    124130jars="$jars:releases/Expeditee.jar"
    125131
    126 cygpath -h 2>/dev/null
    127 if [ $? == 0 ] ; then
     132if [ $cygwin_detected = "1" ] ; then
    128133  jars=`cygpath -wp "$jars"`
    129134fi
     135
     136
     137opt_java_props=""
     138if [ "x$EXPEDITEE_FILESYSTEM" != "x" ] ; then
     139    if [ ! -d "$EXPEDITEE_FILESYSTEM" ] ; then
     140        echo "++ Detected explicit Expeditee filesystem setting"
     141        echo "++ Creating \"$EXPEDITEE_FILESYSTEM\""
     142        echo ""
     143        mkdir "$EXPEDITEE_FILESYSTEM"
     144        if [ $? != 0 ] ; then
     145            echo "Failed to create directory \"$EXPEDITEE_FILESYSTEM\"" >&2
     146            exit -1
     147        fi
     148    fi
     149    _expeditee_filesystem=""
     150    if [ $cygwin_detected = "1" ] ; then
     151        _expeditee_filesystem=`cygpath -ws "$EXPEDITEE_FILESYSTEM" | sed 's/\\\\/\\\\\\\\/g'`
     152    else
     153        _expeditee_filesystem="$EXPEDITEE_FILESYSTEM"
     154    fi
     155
     156    opt_java_props="-Dexpeditee.home=$_expeditee_filesystem"
     157fi
     158
     159
    130160
    131161#java -classpath "$jars"  org.expeditee.gui.Browser $*
    132162
    133163cd "$EXPEDITEE_HOME"
    134 java -classpath releases/Expeditee.jar org.apollo.ApolloSystem $*
     164java $custom_vm_args $opt_java_props -classpath releases/Expeditee.jar org.apollo.ApolloSystem $*
    135165
    136166
Note: See TracChangeset for help on using the changeset viewer.