| Author |
Message |
|
|
Post subject: Problem running XDoclet on an EJB project [Enhancement]
Posted: Aug 13, 2003 - 11:34 AM
|
|
Veteran Member

Joined: Aug 12, 2003
Posts: 1
|
|
I am using v2.5.1 of the workbench with eclipse 2.1.1.
When I run XDoclet on an EJB project i get an error message in the console:
[ejbdoclet] e:\developpement\eclipse\Workspaces\default211\workspace\WorkLoadBench_EJB\src not found.
I can't understand why it is trying to mess with this folder that does not exit since the sourcecode of the project is located in the "EJB Module" folder.
When I look in the xdoclet-buil.xml file, i can see lines like :
<fileset dir="src" includes="**/*.java" > which seems to indicate that the missing "src" is considered as the source folder... why ? |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Aug 13, 2003 - 12:37 PM
|
|
Moderator


Joined: May 05, 2003
Posts: 1037
|
|
The MyEclipse XDoclet integration is a work in progress. The default XDoclet configuration is not respecting the project's designated source folder, e.g., "EJB Module", but instead is trying to use its default of "src". The remedy is to either rename your "EJB Module" folder to "src" or from the project's Xdoclet properties change the element attribute named fileset.dir to "EJB Module". I found the former ("changing the project's source folder") easiest.
To do the latter, select the project and open the context menut (right-click menu). Choose Properties->XDoclet Configuration. Select the "EJB Standard" template to populate the doclet's tags (element). Then select the "fileset" element to view and modify the "dir" attribute value.
We are already working on a much tighter XDoclet integration to resolve this very problem.
Michael
MyEclipse Support |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Aug 14, 2003 - 07:34 PM
|
|
Registered Member


Joined: Aug 11, 2003
Posts: 13
|
|
I am running into a similar issue. I'd like for the source code to be generated in the EJB source dir (as specified in the project) but am not able to do so. I changed the xDoclet fileset element's dir attribute as follows:
<fileset dir="C:/ccviews/sidi_snap_view/pws_redesign/src" includes="**/*.java" excludes="**/*Facade*.java" >
The code is still being generated under the <project dir>/src dir (the value of dir attribute seems to be getting ignored).
Any other ideas ?
Thanks, Shah |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Aug 14, 2003 - 07:43 PM
|
|
Moderator


Joined: May 06, 2003
Posts: 6760
|
|
Shah,
Did you set either destDir or packageSubstitution? Look at all the doclet settings you're using.
--Scott
MyEclipse Support |
_________________ --Scott
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Aug 14, 2003 - 08:57 PM
|
|
Registered Member


Joined: Aug 11, 2003
Posts: 13
|
|
Thanks, specifying appropriate value in the destdir fixed it.
Shah |
|
|
| |
|
|
|
 |
|
|