You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2002/10/16 08:48:08 UTC
DO NOT REPLY [Bug 13678] New: -
make "arg line" and its composition of "arg value"s equivalent
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-
user@jakarta.apache.org/msg20939.html
OS/Version: Windows NT/2K
Status: NEW
Severity: Enhancement
Priority: Other
Component: Core tasks
AssignedTo: ant-dev@jakarta.apache.org
ReportedBy: hauser@acm.org
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>