ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject RE: how to echo propertyset to file?
Date Mon, 02 Jun 2008 14:36:09 GMT
 

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


Mime
View raw message