Revision: 18171
          http://sourceforge.net/p/gate/code/18171
Author:   johann_p
Date:     2014-07-09 16:38:50 +0000 (Wed, 09 Jul 2014)
Log Message:
-----------
Include the current directory in the Java classpath so that we can easily 
use our own, project or task specific  log4j.properties file.

Modified Paths:
--------------
    gcp/trunk/gcp-direct.sh

Modified: gcp/trunk/gcp-direct.sh
===================================================================
--- gcp/trunk/gcp-direct.sh     2014-07-09 14:54:13 UTC (rev 18170)
+++ gcp/trunk/gcp-direct.sh     2014-07-09 16:38:50 UTC (rev 18171)
@@ -1,5 +1,10 @@
 #!/usr/bin/env bash
 
+## NOTE: this script includes the current directory in the Java classpath 
before
+## any other location is included. This allows e.g. to override the default
+## log4j.properties settings from GCP_HOME/conf with a log4j.properties file
+## in the current directory.
+
 if [ -z "$JAVA_HOME" ]; then
   echo "JAVA_HOME not set.  Please set it to point to your Java installation"
   exit 1
@@ -63,4 +68,4 @@
 shift
 done
 
-"$JAVA_HOME/bin/java" -Dgate.home="${GATE_HOME}" -Dgcp.home="${SCRIPTDIR}" 
-Djava.protocol.handler.pkgs=gate.cloud.util.protocols -cp 
"${SCRIPTDIR}"/gcp.jar:"${SCRIPTDIR}"/'lib/*':"${SCRIPTDIR}"/conf:"$GATE_HOME"/bin/gate.jar:"$GATE_HOME"/'lib/*'
 "${jvmparams[@]}"  gate.cloud.batch.BatchRunner "${gcpparams[@]}"
+"$JAVA_HOME/bin/java" -Dgate.home="${GATE_HOME}" -Dgcp.home="${SCRIPTDIR}" 
-Djava.protocol.handler.pkgs=gate.cloud.util.protocols -cp 
.:"${SCRIPTDIR}"/conf:"${SCRIPTDIR}"/gcp.jar:"${SCRIPTDIR}"/'lib/*':"$GATE_HOME"/bin/gate.jar:"$GATE_HOME"/'lib/*'
 "${jvmparams[@]}"  gate.cloud.batch.BatchRunner "${gcpparams[@]}"

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


------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to