https://bz.apache.org/bugzilla/show_bug.cgi?id=61649
--- Comment #16 from Stefan Bodewig <[email protected]> --- I'm sorry for the delay, have been too busy elsewhere. But now I should be able to really deal with the issue. Looking at exec "$JAVACMD" -Xmx1400m -Dcmp.maxmemory=1400m -classpath "$LOCALCLASSPATH" -Dant.home="$ANT_HOME" -Dant.library.dir="$ANT_LIB" org.apache.tools.ant.launch.Launcher -cp "$CLASSPATH" "-f" "./build.xml" "-Dprp.noninternedstrings=true" "installapp" "-Dwsadmin.extra.args=-javaoption" "-Xmx1024m" "-appendtrace" "true" Unknown argument: -Xmx1024m shows something has split wsadmin.extra.args into multiple args, but unfortunately I cannot see what I really wanted to see (Ant's argument parsing) because of the way the script works. For me you'd have to make --execdebug the very fisr argument so we can see what Ant does to your arguments. Here is a trivial example $ cat build.xml <project> <echo>Hello, world!</echo> </project> $ ant --execdebug -Dfoo="bar -Xmx1024m baz" arg : -Dfoo=bar -Xmx1024m baz quoted_arg: "-Dfoo=bar -Xmx1024m baz" exec "$JAVACMD" -classpath "$LOCALCLASSPATH" -Dant.home="$ANT_HOME" -Dant.library.dir="$ANT_LIB" org.apache.tools.ant.launch.Launcher -cp "$CLASSPATH" "-Dfoo=bar -Xmx1024m baz" Buildfile: /tmp/build.xml [echo] Hello, world! BUILD SUCCESSFUL Total time: 0 seconds as you can see Ant keeps the foo arg intact without me having to use any backslashes. I'd really like to see what your ./build.sh turns your quoted argument to. -- You are receiving this mail because: You are the assignee for the bug.
