Stefan, I was browsing the code of Commandline.Argument and noticed that there was indeed code to strip the quotes while reading the arguments and then re-insert them only if the argument within quotes contained a whitespace.
I worked around this problem by forcing a space within the quotes. This work around will work just as long as no-one does a trim() on the argument! --maneesh -----Original Message----- From: Stefan Bodewig [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2001 1:53 AM To: [EMAIL PROTECTED] Subject: Re: Quotes in the commandline and the ExecTask On Tue, 24 Jul 2001, Maneesh Sahu <[EMAIL PROTECTED]> wrote: > Folks, I have been trying to pass a commandline arg containing > quotes"", but it seems to get stripped when its actually executed. I wouldn't trust <exec>'s logging, the task only sends an approximation of what really gets executed to the logging system. What you see is what would be used for Runtime.exec(String), but Ant uses Runtime.exec(String[]) internally and the result may very well be different. Could you send a relevant snippet of your build file so we can have a look at it, please? Stefan
