ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Weintraub" <qazw...@gmail.com>
Subject Re: how to echo propertyset to file?
Date Mon, 02 Jun 2008 15:21:28 GMT
Just curious... Where is the ${tostring:} function and other types of
functions documented in Ant?

It would be nice to see a list of all such functions.

On Mon, Jun 2, 2008 at 10:36 AM, Rebhan, Gilbert
<Gilbert.Rebhan@huk-coburg.de> wrote:
>
>
> -----Original Message-----
> From: David Weintraub [mailto:qazwart@gmail.com]
> Sent: Monday, June 02, 2008 4:13 PM
> To: Ant Users List
> Subject: Re: how to echo propertyset to file?
>
> /*
> The easiest way to turn a resource ID into something that can be
> echoed is to set a property via a resource ID:
>
> <propertyset id="midlet_properties">
>       <propertyref prefix="MIDlet_"/>
> </propertyset>
>
> <property name="midlet_property_set" refid="midlet_properties"/>
> <echo>Property Set: ${midlet_property_set}</echo>
> */
>
>  the easiest way, without setting another property =
> ${toString:midlet_properties} which gives the same result, a comma
> separated list
>
> /*
> <echo>Property = "${foo_prop}"</echo>
> */
>
> <echo>Property="{toString:midlet_properties}"</echo>
>
> Might not work with all id / refid, but that would always
> be my first attempt.
>
> Regards, Gilbert
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>



-- 
--
David Weintraub
qazwart@gmail.com

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


Mime
View raw message