Changeset 23590 for main/trunk
- Timestamp:
- 2011-01-14T18:47:45+13:00 (13 years ago)
- Location:
- main/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/client-gli.sh
r19769 r23590 16 16 PROGFULLNAME=$PROGNAME 17 17 fi 18 export PROGNAME 19 export PROGFULLNAME 18 20 19 21 if [ "x$PROGABBR" = "x" ] ; then 20 PROGABBR=" GLI"22 PROGABBR="Client-GLI" 21 23 fi 24 export PROGABBR 22 25 23 26 if [ "x$PROGNAME_EN" = "x" ] ; then 24 PROGNAME_EN="Greenstone Librarian Interface "27 PROGNAME_EN="Greenstone Librarian Interface - Remote Client" 25 28 fi 29 export PROGNAME_EN 26 30 27 31 # we're running GLI (or FLI) in client mode … … 132 136 # -Xloggc:<file> Write garbage collection log 133 137 138 # -Xdock:name To set the name of the app in the MacOS Dock bar 139 # -Xdock:icon Path to the MacOS Doc icon (not necessary for GS) 140 custom_vm_args="" 141 if [ "$GSDLOS" = "darwin" ]; then 142 custom_vm_args="-Xdock:name=$PROGABBR" 143 fi 144 134 145 # GS2 only requires -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar. GS3 requires more but it doesn't conflict with GS2: 135 146 if [ "$local_gs" = "false" ]; then 136 147 echo "Since there's no GSDLHOME, client-GLI's download panel will be deactivated." 137 148 echo 138 $javapath -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar:lib/commons-codec-1.3.jar:lib/commons-httpclient-3.1-rc1.jar:lib/commons-logging-1.1.jar org.greenstone.gatherer.GathererProg -use_remote_greenstone $*149 $javapath -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar:lib/commons-codec-1.3.jar:lib/commons-httpclient-3.1-rc1.jar:lib/commons-logging-1.1.jar $custom_vm_args org.greenstone.gatherer.GathererProg -use_remote_greenstone $* 139 150 else 140 151 gsdlos=`uname -s | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` … … 146 157 echo "Downloading is enabled." 147 158 echo 148 $javapath -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar:lib/commons-codec-1.3.jar:lib/commons-httpclient-3.1-rc1.jar:lib/commons-logging-1.1.jar org.greenstone.gatherer.GathererProg -use_remote_greenstone -gsdl "$GSDLHOME" -gsdlos $gsdlos $*159 $javapath -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar:lib/commons-codec-1.3.jar:lib/commons-httpclient-3.1-rc1.jar:lib/commons-logging-1.1.jar $custom_vm_args org.greenstone.gatherer.GathererProg -use_remote_greenstone -gsdl "$GSDLHOME" -gsdlos $gsdlos $* 149 160 fi 150 161 -
main/trunk/gli/gems.sh
r22336 r23590 105 105 # -Xloggc:<file> Write garbage collection log 106 106 107 # -Xdock:name To set the name of the app in the MacOS Dock bar 108 # -Xdock:icon Path to the MacOS Doc icon (not necessary for GS) 109 custom_vm_args="" 110 if [ "$GSDLOS" = "darwin" ]; then 111 custom_vm_args="-Xdock:name=$PROGABBR" 112 fi 113 107 114 # basic_command is the cmd string common to both Greenstone 3 and Greenstone 2 execution 108 115 # (gs3 doesn't -gsdl3src $GSDL3SRCHOME passed to it, it needs $GSDL3HOME to find the collect dir) 109 basic_command="$javapath -classpath classes/:GLI.jar:lib/apache.jar org.greenstone.gatherer.gems.GEMS"116 basic_command="$javapath -classpath classes/:GLI.jar:lib/apache.jar $custom_vm_args org.greenstone.gatherer.gems.GEMS" 110 117 111 118 if [ "$_version" -eq 2 ]; then -
main/trunk/gli/gli.sh
r22409 r23590 143 143 # -Xprof Function call profiling 144 144 # -Xloggc:<file> Write garbage collection log 145 146 # -Xdock:name To set the name of the app in the MacOS Dock bar 147 # -Xdock:icon Path to the MacOS Doc icon (not necessary for GS) 148 custom_vm_args="" 149 if [ "$GSDLOS" = "darwin" ]; then 150 custom_vm_args="-Xdock:name=$PROGABBR" 151 fi 145 152 146 153 exit_status=0 … … 148 155 # GS2 webLib 149 156 if [ "$PROGABBR" = "FLI" -o ! -f "$GSDLHOME/gs2-server.sh" ]; then 150 "$javapath" -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar org.greenstone.gatherer.GathererProg -gsdl "$GSDLHOME" -gsdlos $GSDLOS $*157 "$javapath" -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar $custom_vm_args org.greenstone.gatherer.GathererProg -gsdl "$GSDLHOME" -gsdlos $GSDLOS $* 151 158 exit_status=$? 152 159 # GS2 localLib 153 160 else 154 "$javapath" -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar org.greenstone.gatherer.GathererProg -gsdl "$GSDLHOME" -gsdlos $GSDLOS -local_library "$GSDLHOME/gs2-server.sh" $*161 "$javapath" -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar $custom_vm_args org.greenstone.gatherer.GathererProg -gsdl "$GSDLHOME" -gsdlos $GSDLOS -local_library "$GSDLHOME/gs2-server.sh" $* 155 162 exit_status=$? 156 163 fi 157 164 # GS3 158 165 elif [ "$_version" -eq 3 ]; then 159 "$javapath" -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar org.greenstone.gatherer.GathererProg -gsdl "$GSDLHOME" -gsdlos $GSDLOS -gsdl3 "$GSDL3HOME" -gsdl3src "$GSDL3SRCHOME" $*166 "$javapath" -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar $custom_vm_args org.greenstone.gatherer.GathererProg -gsdl "$GSDLHOME" -gsdlos $GSDLOS -gsdl3 "$GSDL3HOME" -gsdl3src "$GSDL3SRCHOME" $* 160 167 exit_status=$? 161 168 fi -
main/trunk/greenstone2/gs2-server.sh
r20896 r23590 145 145 fi 146 146 147 # -Xdock:name To set the name of the app in the MacOS Dock bar 148 # -Xdock:icon Path to the MacOS Doc icon (not necessary for GS) 149 custom_vm_args="" 150 if [ "$GSDLOS" = "darwin" ]; then 151 custom_vm_args="-Xdock:name=$PROGABBR" 152 fi 153 154 147 155 if [ "x$silent" == "x" -o "x$silent" != "xtrue" ]; then 148 156 # verbose mode, show all output, but then we can't run the server interface in the background 149 157 150 "$javapath" org.greenstone.server.Server2 "$GSDLHOME" "$serverlang" $*158 "$javapath" $custom_vm_args org.greenstone.server.Server2 "$GSDLHOME" "$serverlang" $* 151 159 else 152 160 # If we launch the Greenstone Server Interface application in the background (with & at end) 153 161 # need to redirect any STDERR (STDOUT) output to /dev/null first, else output will hog the x-term. 154 "$javapath" org.greenstone.server.Server2 "$GSDLHOME" "$serverlang" $* > /dev/null &162 "$javapath" $custom_vm_args org.greenstone.server.Server2 "$GSDLHOME" "$serverlang" $* > /dev/null & 155 163 fi 156 164
Note:
See TracChangeset
for help on using the changeset viewer.