File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes xdoclet plugin for eclipse - configuring xdoclet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "xdoclet plugin for eclipse - configuring xdoclet" Watch "xdoclet plugin for eclipse - configuring xdoclet" New topic
Author

xdoclet plugin for eclipse - configuring xdoclet

Paul Beckett
Ranch Hand

Joined: Jun 14, 2008
Posts: 96
I'm using xdoclet within eclipse to generate the ejb descriptors and local/remote/session classes. I've recently hit a problem on my project where I get a OutOfMemoryError during the generation. This is using eclipse europa on windows xp.

The xdoclet plugin seems to use ant so the suggestion in the error message is to increase the memory available to ant using the ANT_OPTS property. I'm not sure how to get eclipse to recognise this property? I've done some searching via google and couldn't find anything useful. The xdoclet plugin doesn't seem to have much in the way of configuration options and if I set the ANT_OPTS in the Windows environment variables, eclipse doesn't seem to recognise it!

I've discovered a way of manually running the xdoclet build by using the tempAnt.xml ant build file that eclipse produces in the \workspace\.metadata\.plugins\ directory of the xdoclet plugin but am sure there must be a better way of doing this.

Any help will be much appreciated.

Paul Beckett
Ranch Hand

Joined: Jun 14, 2008
Posts: 96
Found a fix for this problem.

In the eclipse window preferences go to:

Java\InstalledJREs\

and edit the jre you are using. You can then add some default VM arguments and the xdoclet build uses these.

Such a simple solution but a pain to find.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: xdoclet plugin for eclipse - configuring xdoclet
 
Similar Threads
Running ANT on Linux
XDoclet in eclipse
This weeks giveaway
XDoclet OutOfMemory problem.
How to configure ANT_OPTS inside Eclipse?