Am 17.06.2011 17:13, schrieb Dominique Devienne:
On Thu, Jun 16, 2011 at 11:31 PM, Dark Before Dawn
<dark.before.d...@gmail.com> wrote:
I would like to use apache-ant-1.8.2 in JavaSE, to generate build.xml Files
dynamically. Is there a way to export a Project Object as xml File via
Writer/Stream?
Nope. And I don't think it's possible (or easy) to do either, at least
in the generic case.
IMHO you're better off building an in-memory DOM tree for the
build.xml and serializing that instead.
Ant has no real concept of an AST that'd represent the full build file
"info set" like typical compilers, from which it would be easy to
"printy print" back to a text file.
Thanks, --DD
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org
At least I got a dynamic/programatic Project object with multiple
Targets in memory, which I can use to generate WAR Files. I think this
is sufficient for my tasks :)
Thanks :)
Darky
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org