This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Help with basic XDoclet use Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Help with basic XDoclet use" Watch "Help with basic XDoclet use" New topic
Author

Help with basic XDoclet use

Toby Eggitt
Ranch Hand

Joined: Dec 08, 2004
Posts: 31
Hi All,

I'm trying to pick up someone else's leftovers with pretty simple project that uses XDoclet. I've never used it before

I have found out (pretty quickly) that this project's web.xml file is being generated by the XDoclet stuff. Well, my problem is that I need to add something--specifically a context-param element, to that web.xml.

So far, the only thing I've been able to do is hand modify the web.xml file after the build. Clearly that sucks as I have to explode the ear, then explode the war, then modify the web.xml, then put it all back together.

Any offers? (And while we're on the subject, I haven't even managed to find documentation for this thing online. Where should I be looking? By the way, I'm using what I think is an old version of XDoclet, it's version 1.2.2. I don't want to mess around upgrading unless there are no differences, and of course, if there are no difference, I have no need to upgrade

Thanks for any help,
Toby
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35247
    
    7
Version 1.2.2 is the latest; the library is no longer being developed. (Since the advent of Java 5 you would use annotations instead of JavaDoc tags.)

Its documentation is part of its web site (http://xdoclet.sourceforge.net/xdoclet/index.html), but I'm sure you found that already.

Are you using XDoclet from Ant? If so, which of its custom tags is used for creating the web.xml file?


Android appsImageJ pluginsJava web charts
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14486
    
    7

There is an XDoclet capability to construct the web.xml and inject custom elements. You shouldn't have to disassemble and reassemble the web.xml.

I liked XDoclet and was shocked when I went to the site one day and discovered that, in effect, it had died. But I've managed to learn to love annotations.


Customer surveys are for companies who didn't pay proper attention to begin with.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35247
    
    7
XDoclet works fine for what it does, though. I still use it for creating Hibernate 2 mapping files.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help with basic XDoclet use
 
Similar Threads
This weeks giveaway
XDoclet 1.2 vs XDoclet 2
xdoclet plugin for eclipse - configuring xdoclet
JAXM Jar related
To authors