https://bz.apache.org/bugzilla/show_bug.cgi?id=58898
--- Comment #4 from KM <[email protected]> --- (In reply to jwadamson from comment #3) > What is the pertinent arguments and what is the output of execdebug when you > run it? e.g. > > apache-ant-1.9.7$ ./bin/ant --execdebug -Dbr.cmd="co-r " -version > exec "$JAVACMD" -Xmx512m -classpath "$LOCALCLASSPATH" -Dant.home="$ANT_HOME" > -Dant.library.dir="$ANT_LIB" org.apache.tools.ant.launch.Launcher -cp > "$CLASSPATH" "-Dbr.cmd=co-r " "-version" > Apache Ant(TM) version 1.9.7 compiled on April 9 2016 I tried to first see how the line gets interpreted and then run the above commands as you suggested. here is the output: # with 1.9.6 you get $ ant --execdebug '-Dbranch.command="co' -r '"' -version exec "/home/build/softwares/jdk/jre/bin/java" -classpath "/home/build/softwares/ant/lib/ant-launcher.jar" -Dant.home="/home/build/softwares/ant" -Dant.library.dir="/home/build/softwares/ant/lib" org.apache.tools.ant.launch.Launcher -cp "/home/build/softwares/ant/lib/ant.jar:/u04/tomcat/common/lib/servlet.jar" "-Dbranch.command="co" "-r" """ "-version" Apache Ant(TM) version 1.9.6 compiled on June 29 2015 #with 1.9.7 you get $ ant --execdebug '-Dbranch.command="co' -r '"' -version exec "$JAVACMD" -classpath "$LOCALCLASSPATH" -Dant.home="$ANT_HOME" -Dant.library.dir="$ANT_LIB" org.apache.tools.ant.launch.Launcher -cp "$CLASSPATH" "-Dbranch.command=\"co" "-r" "\"" "-version" Unknown argument: -r As I've also said, I have no issue reworking the script so the quotes are not part of the value. That is strange to me anyway. there is no need to have it that way. -- You are receiving this mail because: You are the assignee for the bug.
