Ant -- Generate application.xml file

O

oziris

hi and happy new year !

I would like to know if there is a means of generating the ear
application.xml file with Ant.

Knowing the nested elements of task 'ear' define the list of its
archives, I assume Ant could be generate the xml file, as it specifies
no more and no less the same stuffs.

Thanks.

-o--
 
M

mandar.amdekar

Java 1.4 or earlier, use xdoclet, although it's hard to see how you'd
generate application.xml. It's definitely easier to generate something
that is tightly coupled with Java source files (e.g. ejb-jar.xml)

Java 5 onwards, you can use annotations and apt (annotation processing
tool)

There may well be custom Ant tasks out there to generate one for you,
although even in that case, you'd be hardcoding the contents in Ant.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top