[ 
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1505?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Xavier Chatelain updated XDT-1505:
----------------------------------

    Attachment: xdoclet-1.2.3-patched-jdk14.jar

And here is XDoclet v1.2.3 with the same patch but compiled with a JDK 1.4 (the 
other patch only works for JDK 1.5 projects).

> You cannot use the same doclet twice
> ------------------------------------
>
>                 Key: XDT-1505
>                 URL: 
> http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1505
>             Project: XDoclet
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.3
>            Reporter: Kenney Westerhof
>            Assignee: xdoclet-devel (Use for new issues)
>            Priority: Critical
>         Attachments: xdoclet-1.2.3-patched-jdk14.jar, 
> xdoclet-1.2.3-patched.jar, xdt1505.patch
>
>
> When you use the same doclet task twice (in a build.xml file,
> or 'embedded'),  SubTasks shared between the two definitions
> will always be the same. I.e.:
> <target>
>   <!-- will create sessoin beans in dir A. -->
>   <ejbdoclet destDir="A">
>     <session/>
>   </ejbdoclet>
>   <!-- will create session beans in dir A also! -->
>   <ejbdoclet destDir="B">
>     <session/>
>   </ejbdoclet>
>   <!-- will create session beans in dir C -->
>   <ejbdoclet destDir="C">
>     <session destDir="C"/>
>   </ejbdoclet>
> SubTask.init() checks for null values (for destDir e.a.).
> If they're null, it inherits them from the parent DocletTask.
> If they're not null (the second time it gets called), they don't
> get reconfigured.
> Having a flag in SubTask doesn't solve this - the subtaskmap should
> be reset, so all fields are properly reconfigured, or after execute
> is finished, the fields should be set to null.
> I know there are some related issues that are solved too by this.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to