You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by ea...@apache.org on 2016/07/18 15:27:43 UTC

svn commit: r1753243 - /uima/uima-ducc/trunk/src/main/scripts/viaducc

Author: eae
Date: Mon Jul 18 15:27:43 2016
New Revision: 1753243

URL: http://svn.apache.org/viewvc?rev=1753243&view=rev
Log:
UIMA-4767 do not ignore -jar entries, treat them as the main class

Modified:
    uima/uima-ducc/trunk/src/main/scripts/viaducc

Modified: uima/uima-ducc/trunk/src/main/scripts/viaducc
URL: http://svn.apache.org/viewvc/uima/uima-ducc/trunk/src/main/scripts/viaducc?rev=1753243&r1=1753242&r2=1753243&view=diff
==============================================================================
--- uima/uima-ducc/trunk/src/main/scripts/viaducc (original)
+++ uima/uima-ducc/trunk/src/main/scripts/viaducc Mon Jul 18 15:27:43 2016
@@ -102,6 +102,8 @@ def usage():
     print "   If java_viaducc is used as a 'normal' command, the JRE is searched for in this order:"
     print "      1. Use the java specified by -DJAVA_BIN="
     print "      2. Use the java configured for DUCC"
+    print ""
+    print "   If -jar is used it must be the last JVM arg before any command line args"
     
     print
     sys.exit(0)
@@ -186,7 +188,7 @@ def parse_java_command_line():
         if arg.startswith('-'):
             # these are the only options that take an argument and require
             # a space between the flag and the argument
-            if arg in ('-cp', '-classpath', '-jar'):
+            if arg in ('-cp', '-classpath'):
                 skip_next_arg = True
             elif arg.startswith('-xmx'): # maximum Java heap size
                 maximum_memory_required = parse_memory_string(arg[4:])