[XDoclet-JIRA] Commented: (XDT-1435) Module list gets reset but DocletTask.subtaskMap isn't

"David J. M. Karlsen (JIRA)" <[email protected]>
Newsgroups gmane.comp.java.xdoclet.devel
Message-ID <[email protected]>
    [ http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1435?page=comments#action_17516 ] 

David J. M. Karlsen commented on XDT-1435:
------------------------------------------

How can I set the subtaskMap and subtaskNameMap to null?

> Module list gets reset but DocletTask.subtaskMap isn't
> ------------------------------------------------------
>
>          Key: XDT-1435
>          URL: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1435
>      Project: XDoclet
>         Type: Bug

>   Components: Core
>     Versions: 1.2.3
>  Environment: windows/all
>     Reporter: Kenney Westerhof
>     Assignee: xdoclet-devel (Use for new issues)

>
>
> This is somewhat related to XDT-879.
> In version 1.2.3, ModuleFinder.resetFoundModules is reset,
> but the DocletTask.subtaskMap and subtaskNameMap are not.
> This results in re-scanning for modules for each DocletTask,
> which is good.  However, when you use ejbdoclet and webdoclet
> together, you get an AMBIGUOUS_SUBTASK_DEFINITION error
> for 'service-endpoint', which is in both the ejb and the web
> module (ServiceEndpointSubTask).
> This is because when one task is finished (say ejbdoclet) and
> the next one is initializing (say webdoclet), the static subtaskMap is still there containing the subtasks of ejbdoclet (which contains 'service-endpoint'.
> DocletTask.registerModules then sees the duplicate taskname and different packages for the classes, and bails.
> Btw, a fix is to set subtaskMap and subtaskNameMap to null - works fine!
> The strange thing is that this doesn't normally occur in Ant,
> but i discovered this when running a custom app embedding ant
> (my maven 2 implementation of the xdoclet plugin). 
> By the slight chance that this is not a bug, can someone tell me
> how to do it correctly then? See http://www.neonics.com/projects/maven-xdoclet-plugin/ for the source.

-- 
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



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.