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=17101>.
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=17101

ant.bat mangles command line arguments

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX



------- Additional Comments From [EMAIL PROTECTED]  2003-02-17 03:04 -------
Thanks. This change was introduced to eliminate the special casing of different
Windows operating systems variants. Whilst, as you say, this worked in Ant 1.5,
it only did so for NT based systems (Win2k). Windows 95/98/ME users would always
have had the problem you identified.

Ultimately the root cause is that Windows strips out = characters in arguments.
In Win2k, this doesn't happen if you get the line as a whole (%*), only if you
parse it as single args (%1, shift). On Win95, %* doesn't work. What a mess! 

We could reintroduce the WinNT/2K specific behaviour, along with the 4NT stuff
and a lot of complexity, and leave the Win95/98/ME users behind or we could
agree that on Windows you need to quote any arguments which contain the '='
character. In your case this would be either

ant "-Dargs=x=y"
or
ant -Dargs="x=y"

Both work. I'm going to mark as WONTFIX for now, but reopen if you feel this
needs more work.

Reply via email to