Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

Ant -- Generate application.xml file

Thread view: 
oziris - 02 Jan 2006 07:15 GMT
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--
mandar.amdekar@gmail.com - 02 Jan 2006 19:03 GMT
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.
opeckojo@gmail.com - 11 Jan 2006 14:29 GMT
I had similar requirements and stumbled across the following blog entry
from Dan Bequeaith:
http://peeps.dallas.focus-technologies.com/roller/page/dbequeaith/20041012
(See Handy application.xml generation ant task)

The XLST stylesheet he developed should give you a good headstart.

Joe


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.