Changeset 28740 for other-projects/expeditee-release-kits/scripts/run.sh
- Timestamp:
- 2013-12-03T16:20:10+13:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/expeditee-release-kits/scripts/run.sh
r28721 r28740 30 30 ## ---- Determine JAVA_HOME ---- 31 31 # 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 37 34 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) 37 exit_status=0 38 source bin/findjava.sh "$exp_lang" "$PROGNAME" 39 exit_status=$? 40 if [ "$exit_status" -eq 1 ]; then 41 exit 1; 42 fi 43 export PATH=$javahome/bin:$PATH 40 44 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) 47 custom_vm_args="" 48 if [ "$EXPEDITEE_OS" = "darwin" ]; then 49 custom_vm_args="-Xdock:name=$PROGFULLNAME" 50 fi 50 51 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>... 57 53 58 #-Xmx128M -classpath <classpath>... 54 "$javapath" $custom_vm_args -jar Expeditee.jar $* 59 55 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.