Revision: 6504
          http://sourceforge.net/p/jump-pilot/code/6504
Author:   edso
Date:     2020-09-20 22:41:49 +0000 (Sun, 20 Sep 2020)
Log Message:
-----------
enable/explain JUMP_OPTS setting in start scripts

Modified Paths:
--------------
    core/trunk/scripts/oj_linux.sh
    core/trunk/scripts/oj_windows.bat

Modified: core/trunk/scripts/oj_linux.sh
===================================================================
--- core/trunk/scripts/oj_linux.sh      2020-09-20 22:17:08 UTC (rev 6503)
+++ core/trunk/scripts/oj_linux.sh      2020-09-20 22:41:49 UTC (rev 6504)
@@ -17,6 +17,10 @@
 ## to overwrite OS default locale setting
 #JAVA_LANG="-Duser.language=de -Duser.country=DE"
 
+## uncomment and edit if you want some default OJ parameter set
+## run OJ with '--help' argument to find out which are available
+#JUMP_OPTS="-v DEBUG"
+
 ## set some defaults (as macosx.command uses this script, it might define 
other defaults)
 MAIN="com.vividsolutions.jump.workbench.JUMPWorkbench"
 JAVA_SAXDRIVER=${JAVA_SAXDRIVER-org.apache.xerces.parsers.SAXParser}
@@ -217,16 +221,16 @@
 CLASSPATH=.:./bin:./conf:$CLASSPATH
 export CLASSPATH;
 
-## compile jump opts
+## prepend jump opts
 #
-JUMP_OPTS="-plug-in-directory $JUMP_PLUGIN_DIR"
+JUMP_OPTS="-plug-in-directory '$JUMP_PLUGIN_DIR' $JUMP_OPTS"
 if [ -f "$JUMP_PLUGINS" ]; then
-  JUMP_OPTS="$JUMP_OPTS -default-plugins $JUMP_PLUGINS"
+  JUMP_OPTS="-default-plugins '$JUMP_PLUGINS' $JUMP_OPTS"
 fi
 # workbench-properties.xml is used to manually load plugins (ISA uses this)
 JUMP_PROPERTIES=./bin/workbench-properties.xml
 if [ -n "$JUMP_PROPERTIES" ] && [ -f "$JUMP_PROPERTIES" ]; then
-  JUMP_OPTS="$JUMP_OPTS -properties $JUMP_PROPERTIES"
+  JUMP_OPTS="-properties '$JUMP_PROPERTIES' $JUMP_OPTS"
 fi
 
 # compile jre opts, respect already set ones from e.g. mac

Modified: core/trunk/scripts/oj_windows.bat
===================================================================
--- core/trunk/scripts/oj_windows.bat   2020-09-20 22:17:08 UTC (rev 6503)
+++ core/trunk/scripts/oj_windows.bat   2020-09-20 22:41:49 UTC (rev 6504)
@@ -16,6 +16,7 @@
 rem set JAVA_BIN=java
 
 rem -- set some default OJ options here (eg. -v debug), initialize empty --
+rem -- run OJ with '--help' argument to find out which are available --
 set JUMP_OPTS=
 
 rem -- set some java runtime options here, initialize empty --



_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to