Revision: 14565
          http://gate.svn.sourceforge.net/gate/?rev=14565&view=rev
Author:   johann_p
Date:     2011-11-17 14:14:49 +0000 (Thu, 17 Nov 2011)
Log Message:
-----------
Add a parameter to easily set the resources home directory.

Modified Paths:
--------------
    gate/trunk/bin/gate.sh

Modified: gate/trunk/bin/gate.sh
===================================================================
--- gate/trunk/bin/gate.sh      2011-11-17 14:14:24 UTC (rev 14564)
+++ gate/trunk/bin/gate.sh      2011-11-17 14:14:49 UTC (rev 14565)
@@ -30,6 +30,7 @@
 session=
 initdir=
 log4j=
+rh=
 while test "$1" != "";
 do
   case "$1" in
@@ -43,6 +44,8 @@
                in the current directory
   -ll      ... if the current directory contains a file log4j.properties use
                this file to configure the logging
+  -rh path ... set the resources home path, this is a shortcut for 
+               -Druntime.gate.user.resourceshome=path 
   -h       ... show this help
 All other options will be passed on to the "ant run" command, for example:
   -propertyfile <file> ... use <file> instead of \$GATE_HOME/build.properties
@@ -75,6 +78,13 @@
       log4j="-Drun.log4j.configuration=file://$CURDIR/log4j.properties"
     fi
     ;;
+  -rh)
+    shift
+    resourceshome=$1
+    resourceshome=`cd "$resourceshome"; pwd -P`
+    shift
+    rh="-Drun.gate.user.resourceshome=$resourceshome"
+    ;;  
   *)
     break
     ;;
@@ -82,6 +92,6 @@
 done
 
 
-echo running: "$GATE_HOME/bin/ant" run -f "$GATE_HOME/build.xml"  "$config" 
"$sessioni" "$initdir" "$log4j" "$@"
-exec "$GATE_HOME/bin/ant" run -f "$GATE_HOME/build.xml" "$config" "$session" 
"$initdir" "$log4j" "$@"
+echo running: "$GATE_HOME/bin/ant" run -f "$GATE_HOME/build.xml"  "$config" 
"$sessioni" "$initdir" "$log4j" "$rh" "$@"
+exec "$GATE_HOME/bin/ant" run -f "$GATE_HOME/build.xml" "$config" "$session" 
"$initdir" "$log4j" "$rh" "$@"
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to