I would use xmltask to insert the below into a dynamically built build.xml, and then execute a new Ant task to run that.
Brian On Fri, September 21, 2007 20:42, Karsten Kousgaard wrote: > Hello > > I'm doing my first ANT project, but have faced a problem that I'm not able > to solve. I have a xml file, which I want to change using a dynamic > configuration file of some kind. The configuration file could look like > this: > <replace path="an xpath" value="the new value" /> > <replace path="an xpath" value="the new value" /> > .. > > That fits perfect together with the external task, xmltask. Now the > problem for me is, how do I parse and iterate the configuration file, to > give the correct values to xmltask? > > I also thought about using xslt, but I don't know how to do that either. > My xslt knowledge is not good enought for this problem. > Another challenge is that the configuration file could have properties > that I would like to resolve, e.g. <replace path="an xpath" > value="${myProperty}" />. > But this is more a nice-to-have than a must-have. Any help about solving > this? Thank you very much > > ____________________________________________________________ > GET FREE 5GB ONLINE STORAGE - Safely store your documents, photos and > music online! > Visit http://www.inbox.com/storage to find out more! > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Brian Agnew http://www.oopsconsultancy.com OOPS Consultancy Ltd Tel: +44 (0)7720 397526 Fax: +44 (0)20 8682 0012 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]