ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Laurent P." <work...@yahoo.fr>
Subject Access properties after xmlproperty task
Date Thu, 20 Nov 2003 12:58:07 GMT
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.

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
View raw message