ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conor MacNeill <co...@apache.org>
Subject Re: Quotations in a property get corrupted when passed as an arg
Date Wed, 13 Apr 2005 14:18:28 GMT
Oski Wee wrote:
> James Abley <james.abley@volantis.com>wrote:
> 
>> <property name="arg.one" value='argument that has a literal " as part 
>> of its value' />
>>
> 
> James, thanks for your suggestion.  I tried it, and it produces the same 
> behavior as
> <property name="arg.one" value="argument that has a literal &quot; as 
> part of its value" />
> 
> Namely, the actual argument Ant passes is "argument that has a literal " 
> as part of its value", including the surround quotations.
> 

There is not much Ant can do here - there is no real way for it to pass 
an argument that has quotes and spaces. How do you even do that yourself 
at the command line?

The command line is inherently an imperfect channel for getting data 
into your application. Is it possible to pass data to your application 
in another way such as a file?

Conor

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


Mime
View raw message