I would try the following approach: (1) write the value to a file and (2) import the file back to the Ant script. Perhaps something like this.
<echoxml file="foo.xml"> <include>bar.as</include> <include>baz.as</include> </echoxml> ... <compc> <import file="foo.xml"/> </compc> The <compc> </compc> might need to be included in the <echoxml> --glenn On Thu, Jul 16, 2009 at 15:56, HamletDRC <hamlet...@gmail.com> wrote: > > Hi, > > Is it possible to do this? > > I have a property that contains two XML elements as a String: > > <property name="foo" > value="<include>bar.as</include><include>baz.as > </include>" > /> > > And I want it expanded into the execution of a task as if I wrote this: > > <compc> > <include>bar.as</include> > <include>baz.as</include> > </compc> > > I expected this to work: > <compc> > ${foo} > </compc> > > But I get the error: > The <compc> type doesn't support nested text data ("${foo}"). > > I'm assuming this isn't an error with "compc" but is instead in error in > how > I'm expanding ${foo}. > > Can I do this in Ant? > > > > > ----- > -- > Hamlet D'Arcy > > -- > View this message in context: > http://www.nabble.com/write-property-as-part-of-task-definition-tp24524324p24524324.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 > >