ant-user mailing list archives

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

-brian

-----Original Message-----
From:	Stefan Bodewig [mailto:bodewig@apache.org]
Sent:	Wed 9/25/2002 2:19 AM
To:	ant-user@jakarta.apache.org
Cc:	
Subject:	Re: trouble with single quotes

On Tue, 24 Sep 2002, Brian Schmitt <Brian.Schmitt@citigatehudson.com>
wrote:

> <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.
`----

Stefan

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>





Mime
View raw message