Ignore:
Timestamp:
2013-12-03T16:20:10+13:00 (10 years ago)
Author:
ak19
Message:

Expeditee team (jts21). Add shared/windows folder with self-extracting Java 8 JRE, moved windows_wrapper.cpp to shared/windows/wrapper/wrapper.cpp, fixed run/findjava scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/expeditee-release-kits/scripts/run.sh

    r28721 r28740  
    3030##  ---- Determine JAVA_HOME ----
    3131# JRE_HOME or JAVA_HOME must be set correctly to run this program
    32 java_min_version=1.8.0_00
    33 bin/search4j -m $java_min_version &> /dev/null
    34 # for some reason, Mac requires an echo after the above
    35 echo
    36 if [ "$?" == "0" ]; then
     32#CLASSPATH
     33# if setting classpath, see gs2-server.sh, then export it
    3734
    38     #CLASSPATH
    39     # if setting classpath, see gs2-server.sh, then export it
     35## ---- Check Java ----
     36# call the script with source, so that we have the variables it sets ($javapath)
     37exit_status=0
     38source bin/findjava.sh "$exp_lang" "$PROGNAME"
     39exit_status=$?
     40if [ "$exit_status" -eq 1 ]; then
     41    exit 1;
     42fi
     43export PATH=$javahome/bin:$PATH
    4044
    41     ## ---- Check Java ----
    42     # call the script with source, so that we have the variables it sets ($javapath)
    43     exit_status=0
    44     source bin/findjava.sh "$exp_lang" "$PROGNAME"
    45     exit_status=$?
    46     if [ "$exit_status" -eq 1 ]; then
    47         exit 1;
    48     fi
    49     export PATH=$javahome/bin:$PATH
     45# -Xdock:name      To set the name of the app in the MacOS Dock bar
     46# -Xdock:icon      Path to the MacOS Doc icon (not necessary for GS)   
     47custom_vm_args=""
     48if [ "$EXPEDITEE_OS" = "darwin" ]; then
     49    custom_vm_args="-Xdock:name=$PROGFULLNAME"
     50fi
    5051
    51     # -Xdock:name      To set the name of the app in the MacOS Dock bar
    52     # -Xdock:icon      Path to the MacOS Doc icon (not necessary for GS)   
    53     custom_vm_args=""
    54     if [ "$EXPEDITEE_OS" = "darwin" ]; then
    55         custom_vm_args="-Xdock:name=$PROGFULLNAME"
    56     fi
     52#-Xmx128M -classpath <classpath>...
    5753
    58     #-Xmx128M -classpath <classpath>...
     54"$javapath" $custom_vm_args -jar Expeditee.jar $*
    5955
    60     "$javapath" $custom_vm_args -jar Expeditee.jar $*
    61 
    62     # silent mode: when launched in the background (with & at end), need to
    63     # redirect any STDERR (STDOUT) output to /dev/null first, else output will hog the x-term.
    64     #"$javapath" $custom_vm_args org.greenstone.server.Server2 "$GSDLHOME" "$GSDLOS$GSDLARCH" "$serverlang" $* > /dev/null &
    65 fi
     56# silent mode: when launched in the background (with & at end), need to
     57# redirect any STDERR (STDOUT) output to /dev/null first, else output will hog the x-term.
     58#"$javapath" $custom_vm_args org.greenstone.server.Server2 "$GSDLHOME" "$GSDLOS$GSDLARCH" "$serverlang" $* > /dev/null &
Note: See TracChangeset for help on using the changeset viewer.