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 2003/06/04 10:37:38 UTC
DO NOT REPLY [Bug 20467] -
No warning when using multiple words in value attribute of arg tag.
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=20467>.
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=20467
No warning when using multiple words in value attribute of arg tag.
jan@materne.de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
------- Additional Comments From jan@materne.de 2003-06-04 08:37 -------
A little test with <exec> and windows batchfile shows that there is nothing
lost. If you use "value" the whole string is transfered as ONE parameter. If
you use "line" the string is separated by whitespaces. I think that behaviour
is sufficiently documented in the manual. So I close this bug as 'worksforme'.
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="test" basedir="." default="main">
<target name="main">
<echo>VALUE</echo>
<exec executable="x.bat">
<arg value="eins zwei"/>
</exec>
<echo>LINE</echo>
<exec executable="x.bat">
<arg line="eins zwei"/>
</exec>
</target>
</project>
@echo off
echo 1 - %1
echo 2 - %2
echo 3 - %3
echo 4 - %4
main:
[echo] VALUE
[exec] 1 - "eins zwei"
[exec] 2 -
[exec] 3 -
[exec] 4 -
[echo] LINE
[exec] 1 - eins
[exec] 2 - zwei
[exec] 3 -
[exec] 4 -