Jan's idea makes sense.
You could generate on the fly a mini-ant project containing the
invocation of the Flex compiler and invoke this mini-build file with the
<ant/> task from your main build.
In fact Adobe does not make the life of it's users easy by choosing to
use the text of a nested element to indicate the value of a flag.
Regards,
Antoine
jan.mate...@rzf.fin-nrw.de wrote:
Could you post your code of invoking the Flex compiler? It would be easier to
help ...
For the meanwhile: you could create a textfile
<property name="use-network" value="true"/>
<echoxml file=""><use-network>${use-network}</usenetwork></echoxml>
Jan
-----Ursprüngliche Nachricht-----
Von: dfl [mailto:dfl.pr...@gmail.com]
Gesendet: Montag, 22. Februar 2010 10:45
An: user@ant.apache.org
Betreff: How do I use a property inside an element
Hi,
I'm using Ant to build a Flex application.
One of the Flex compiler's flags is set with an element:
<use-network>[true|false]</use-network>
I'd like to take this value from a property, but so far I was
only able to
use props in XML attributes, not as text nodes. I'd be happy
to get advice
on how to accomplish this.
Cheers
David
--
View this message in context:
http://old.nabble.com/How-do-I-use-a-property-inside-an-element
-tp27684805p27684805.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org