DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13678>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13678 make "arg line" and its composition of "arg value"s equivalent Summary: make "arg line" and its composition of "arg value"s equivalent Product: Ant Version: 1.5.1 Platform: Other URL: http://www.mail-archive.com/ant- [EMAIL PROTECTED]/msg20939.html OS/Version: Windows NT/2K Status: NEW Severity: Enhancement Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] When I do <exec executable="${shCmd}"> <arg line='-c "rm *.??.html"'/> </exec> it works fine. when I do <exec executable="${shCmd}"> <arg value='-c '/> <arg value='"rm '/> <arg value='*.??.html'/> <arg value='"'/> </exec> [exec] Current OS is Windows 2000 [exec] Executing 'C:\cgywin\bin\bash.exe' with arguments: [exec] '-c ' [exec] '"rm ' [exec] '*.??.html' [exec] '"' [exec] [exec] The ' characters around the executable and arguments are [exec] not part of the command. BUILD FAILED file:c:/data/MyDocRalf/build.xml:160: Unable to execute command at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec (Execute.java:654) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:417) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:428) .... Apparently, this has something to do with Runtime.exec and the String[] version of it? It seems that there is no way to compose a single string from several yet. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
