ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 13678] New: - make "arg line" and its composition of "arg value"s equivalent
Date Wed, 16 Oct 2002 06:48:08 GMT
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:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message