ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 58898] ANT wrapper script can not handle double-quote or backslash characters in arguments
Date Tue, 19 Apr 2016 12:03:33 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=58898

--- Comment #2 from KM <info4km@yahoo.com> ---
As per the WHATSNEW file I see that the modifications for this issue change the
interpretation/evaluation of quotes within an ant argument. I have an issue
with 1.9.7.  Previously with ant 1.9.6 and earlier the line expanded to
-Dbr.cmd="co-r ", which is correct.   Now after updating to Ant 1.9.7 the
expansion is messed up.  It actually evaluates to '-Dbr.cmd="co'-r ' " ' 
including all of the quotes shown.  It’s hard to read so I added spaces around
the one double quote at the end.  It actually looks like β€˜β€β€™.  Then ant gives
the error -r option invalid, because as you can see the -r is abandoned between
the literal single quotes.

Needless to say, that I can modify the scripts we use, so the field itself does
not contain the double quotes, and that the field is only surrounded by them. 
But I was surprised that my build failed almost immediately as ant was kicked
off.

-- 
You are receiving this mail because:
You are the assignee for the bug.
Mime
View raw message