DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38771>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38771
------- Additional Comments From alexeys@inventigo.com 2006-02-23 20:47 -------
Just a note - single quotes do not work on Windows. Besides this <apply> also works:
<apply executable="cmd.exe" dest="." parallel="false">
<arg value="/c"/>
<arg value="ShowArgs.cmd" />
<arg value="-c"/>
<arg value="-o"/>
<targetfile/>
<arg value="'-DFIXLVL="test"'"/>
<srcfile/>
<fileset dir=".">
<include name="*.java" />
</fileset>
<mapper type="glob" from="*.java" to="*.test"/>
</apply>
output:
[apply] Current OS is Windows XP
[apply] Warning: Run.java modified in the future.
[apply] Warning: ShowArgs.java modified in the future.
[apply] Run.java added as Run.test doesn't exist.
[apply] ShowArgs.java added as ShowArgs.test doesn't exist.
[apply] Executing 'cmd.exe' with arguments:
[apply] '/c'
[apply] 'ShowArgs.cmd'
[apply] '-c'
[apply] '-o'
[apply] 'C:\tmp\ant\Run.test'
[apply] ''-DFIXLVL="test"''
[apply] 'C:\tmp\ant\Run.java'
[apply]
[apply] The ' characters around the executable and arguments are
[apply] not part of the command.
[apply] C:\tmp\ant>echo -c -o C:\tmp\ant\Run.test '-DFIXLVL="test"'
C:\tmp\ant\Run.java
[apply] -c -o C:\tmp\ant\Run.test '-DFIXLVL="test"' C:\tmp\ant\Run.java
[apply] C:\tmp\ant>exit
[apply] Executing 'cmd.exe' with arguments:
[apply] '/c'
[apply] 'ShowArgs.cmd'
[apply] '-c'
[apply] '-o'
[apply] 'C:\tmp\ant\ShowArgs.test'
[apply] ''-DFIXLVL="test"''
[apply] 'C:\tmp\ant\ShowArgs.java'
[apply]
[apply] The ' characters around the executable and arguments are
[apply] not part of the command.
[apply] C:\tmp\ant>echo -c -o C:\tmp\ant\ShowArgs.test '-DFIXLVL="test"'
C:\tmp\ant\ShowArgs.java
[apply] -c -o C:\tmp\ant\ShowArgs.test '-DFIXLVL="test"'
C:\tmp\ant\ShowArgs.java
[apply] C:\tmp\ant>exit
[apply] Applied cmd.exe to 2 files and 0 directories.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
|