ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: XML property
Date Tue, 25 Nov 2003 08:00:40 GMT
That was asked (and answered) last week :-)
http://marc.theaimsgroup.com/?l=ant-user&m=106923753023384&w=2


Jan 

> -----Original Message-----
> From: Laurent P. [mailto:worklap@yahoo.fr]
> Sent: Tuesday, November 25, 2003 8:54 AM
> To: Ant Users List
> Subject: XML property
> 
> 
> Hello,
> 
> I 'm using Ant 1.5.3 under WSAD 5.1.
> I would like to access properties list via <xmlproperty>.
> 
> My XML file :
> <conf>
>    <utility>
>       <project>a</project>
>       <project>b</project>
>       <project>b</project>
>    </utility>
> </conf>
> 
> I would like to access all <project> properties (a, b, c) as a 
> coma-separed list (or any list) to iterate on it with <foreach>.
> 
> <xmlproperty file="file.xml"/>
> <echo message="${conf.utility.project}"/> ==> [echo] a
> I have only the first child of <utility>.
> 
> I tried with :
> <conf>
>    <utility>
>       <project name="aa">a</project>
>       <project name="bb">b</project>
>       <project name="cc">c</project>
>    </utility>
> </conf>
> but I had the same result.
> 
> Any idea?
> 
> Thank's for advance.
> Laurent
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message