Revision: 17070
http://sourceforge.net/p/gate/code/17070
Author: markagreenwood
Date: 2013-11-08 17:47:51 +0000 (Fri, 08 Nov 2013)
Log Message:
-----------
pull JVM settings from the Launch4J ini file even when starting via bin/gate.sh
so there is a single place to set these across operating systems
Modified Paths:
--------------
gate/branches/sawdust/bin/gate.sh
Modified: gate/branches/sawdust/bin/gate.sh
===================================================================
--- gate/branches/sawdust/bin/gate.sh 2013-11-08 17:41:43 UTC (rev 17069)
+++ gate/branches/sawdust/bin/gate.sh 2013-11-08 17:47:51 UTC (rev 17070)
@@ -1,11 +1,5 @@
#!/bin/bash
-# Parameters passed to the Java process
-# You can edit the values below (to e.g. change the maximum amount of memory)
or
-# add new parameters, as needed.
-
-vmparams=( -Xmx1G )
-
# Parameters passed to the GATE process
# This array gets populated from the command line parameters given to the
# script. If required, you can set the initial list of parameters here.
@@ -40,6 +34,13 @@
export ANT_HOME=$GATE_HOME
cd "$CURDIR"
+# pull in JVM settings from the Launch4J ini file so we have a single place
+# where these things can be set across operarting systems which makes things
+# so much easier to document/explain/teach
+IFS=$'\r\n'
+vmparams=($(cat $GATE_HOME/gate.l4j.ini))
+unset IFS
+
vmparams=( "${vmparams[@]}" "-splash:$GATE_HOME/bin/splash.png" )
DEFAULTSDIR=
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs