ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francis Galiegue <...@one2team.com>
Subject "Expanding" XML attributes with ant 1.6.5
Date Tue, 17 Mar 2009 16:15:30 GMT
Hello,

I have a file named dist.xml which looks like:

<dist>
	<include name="mod1"/>
	<include name="mod2"/>
	<!-- and so on -->
</dist>

What I need to do is call an ant file (well, several, but once I know for one, 
I can expand for all) with each name attributes of the include tags as a 
property. What's more, I need to call them in order (mod1 before mod2 
before...)

Right now, I use the xslt task and a stylesheet to build another ant file that 
I call. It works, but I think this is overkill (and I hate XSL - meh).

I couldn't get the <xmlproperty> task to do what I want and, AFAICS, it just 
cannot do that. I use ant 1.6.5 and cannot just yet use ant 1.7+. Do you know 
of another way of doing what I want _without_ using an XSL stylesheet?

Have fun,
-- 
Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 6 83 87 78 75
Tel : +33 (0) 1 78 94 55 52
fge@one2team.com
40 avenue Raymond Poincaré
75116 Paris

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


Mime
View raw message