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=8359>. 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=8359 Exec task seems to disregard quotes and apostrophes in arg attribute values. ------- Additional Comments From [EMAIL PROTECTED] 2002-04-24 02:06 ------- I'm also running on an NT, with Cygwin -- is that what you have? You said when you run the 'find' directly on the box, it runs okay, so I assume you've got some kind of Unix-type shell, yes? But given the error message you got, it looks like the 'find' that got executed from Ant was the DOS one -- are you running Ant from a DOS window? As for the -verbose output -- don't believe it. Just because you can't see the quotes in that output doesn't mean the shell didn't get passed the right thing (which it did, since all those examples work for me). So you might want to try your original one again, changing: <arg line="-exec rm -f "{}" ";""/> to <arg line='-exec rm -f "{}" ";"'/> and see if it does work for you. Otherwise, since your workaround is pretty yuck, wouldn't it be better to just put it in a script and <exec> that? BTW: Thanks for mentioning escaping an asterisk -- I hadn't thought of doing that, but I just tried adding -name "\*.java" to my <arg> and it worked. (Cool) -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
