ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <nicola...@apache.org>
Subject Re: XML Property handling lists
Date Thu, 05 Dec 2002 10:50:18 GMT


Detlef Brendle wrote:
> Hi,
> I would like to use the xmlProperty task to load a list of elements into my
> project.
> The list looks something like:
> 
> A=hello
> A.do=true
> B=world
> B.do=false
> C=foo
> C.do=true
> D=bar
> D.do=true
> ...
> 
> The list is static.
> 
> How would the XML file look like to load this in my project ?

<properties>
   <A do="true">hello</A>
   <B do="false">world</B>
   <C do="true">bar</C>
   <C do="true">bar</C>
   ...

</properties>

IIRC you have to set the collapseAttributes="true" and not set the root 
node to be part of the property name.

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


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