[ http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_17782 ]
Jaroslav Cibulka commented on XDT-1551: --------------------------------------- Hi, I had the similar problem with generation of struts-config.xml. I've applied the patch attached to this issue with slight changes and it work fine now. I only had to replace two lines from patch <XDtCollection:ifDoesntContain name="visited" value="<XDtClass:fullClassName/>" > <XDtCollection:put name="visited" value="<XDtClass:fullClassName/>"/> with <XDtCollection:ifDoesntContain name="visited" value="<XDtClass:classTagValue tagName='struts:action' paramName='path'/>" > <XDtCollection:put name="visited" value="<XDtClass:classTagValue tagName='struts:action' paramName='path'/>"/> while I use multiple XDoclet annotations of the same Action class for different action paths. Thanks, Tamas. > Some classes are visited more than once causing dulicated entries. > ------------------------------------------------------------------ > > Key: XDT-1551 > URL: > http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1551 > Project: XDoclet > Issue Type: Bug > Components: Apache Module, Core, Spring Module > Environment: irrelevant > Reporter: Cserveny Tamas > Assignee: xdoclet-devel (Use for new issues) > Attachments: visited.patch > > > I'm experienceing a strange bug with xdoclet 1.2.3. > Useing springxml and strutsconfig tags (probably all tags affected) when I > define a class A and its child class B and both of them has xdoclet tags > eg.: > /** > @struts.action .. > @spring.bean .. > */ > class A extends ..struts...Action { > } > /** > @struts.action .. > @spring.bean .. > */ > class B extends A { > } > In both output files the following generated: > <bean name="/A" class="A" .../> > <bean name="/B" class="B" .../> > <bean name="/A" class="B" .../> > 'A' is redefined ( same with struts action ). > I think this issue lies somewhere deep in core, where the superceded class in > question is revisited. > I made a small patch to stop this revisit in my project, but unfortunatelty > i'm unable to provide a full patch againt your CVS version. > The patch is in unified diff format. -- 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 DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel