aspose file tools*
The moose likes Struts and the fly likes xdoclet and java 5 (and struts ;-) ) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "xdoclet and java 5 (and struts ;-) )" Watch "xdoclet and java 5 (and struts ;-) )" New topic
Author

xdoclet and java 5 (and struts ;-) )

Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456
hi all,

i'm migrating a project from java 1.4 to java 5. of course i want to continue using xDoclet. or to be more precise: i want to render struts-config.xml

i found out that xDoclet is not able to work with java 5 and returns absurd results if generics are used.

xDoclet 2 looks better, but seems to be unable to merge constant files (non class determined plugins, forwards etc). plus it is not rendering form beans.

apt looks like an awful amount of work.

google does not return many hits, some people seemed to have chosen the apt-way, working for 5-10 days to re-build what came out-of-the-box with xDoclet

feels strange, i cannot imagine that i'm the only one with this problem :-(

so, what are you guys using? are you rendering your struts-config?

many thanks,
jan
[ August 28, 2006: Message edited by: Jan Groth ]
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Jan,

To your "what are you guys doing?" question, I can only answer for myself. Although I've used xDoclet for EJBs, I haven't used it for Struts. I've just kept with maintaining the struts-config file manually.
[ August 28, 2006: Message edited by: Merrill Higginson ]

Merrill
Consultant, Sima Solutions
Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456
thanks for you answer so far,

we found out that xDoclet2 renders forms but has a little configuration issue with ValidationForms (and its subclasses). this was solved pretty easy.

probably we'll use xslt in the build process to merge the generated struts-config.xml with non generated configuration code.

regards,
jan
Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456
update:

xDoclet2 is working, but not _really_ good. for example it produces a 6 meg logfile, which is non-trivial if not impossible to supress. the setting of the loglevel itself seems to be proprietary, so we are unable to control it (after 4h investigation), which is extremely annoying because it slows down the build process for some 2-300%...

minor inconsistencies occur when configuring it, e.g. form beans are generated without a embracing tag, all others with.

we decided to test it for another week, but will probably be forced to dump it, because this is not tolerable for the build process.

regards,
jan
Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456
update:

we are kicking it out. just found out that java 5 enums will cause xdoclet to phreak out...

:-(

cheers,
jan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: xdoclet and java 5 (and struts ;-) )