ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Schmitt" <>
Subject RE: trouble with single quotes
Date Wed, 25 Sep 2002 15:07:05 GMT
i also found this covered in the mail archive: _quotes in args for exec_.
i should have looked there first.


-----Original Message-----
From:	Stefan Bodewig []
Sent:	Wed 9/25/2002 2:19 AM
Subject:	Re: trouble with single quotes

On Tue, 24 Sep 2002, Brian Schmitt <>

> <arg line="-s 'T9LT.BWDD.TRIG'"/>
> ant seems to parse this and remove the single quotes which causes me
> some difficulty.

It does so because it tries to be smart when you use the line
attribute of arg, the value attribute will make it take literally
whatever you hand to it:

<arg value="-s"/>
<arg value="'T9LT.BWDD.TRIG'"/>

should work.

The Ant manual in future versions will say:

| It is highly recommended to avoid the line version when possible. Ant
| will try to split the command line in a way similar to what a (Unix)
| shell would do, but may create something that is very different from
| what you expect under some circumstances.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message