Message: The following issue has been re-assigned.
Assignee: xdoclet-devel (Use for new issues) (mailto:xdoclet-devel@lists.sourceforge.net) Assigner: Marco Schulze (mailto:[EMAIL PROTECTED]) Date: Thu, 14 Jul 2005 8:30 PM Comment: I'm still searching for a solution - maybe you can help... --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1303 Here is an overview of the issue: --------------------------------------------------------------------- Key: XDT-1303 Summary: @jdo.query Type: New Feature Status: Open Priority: Minor Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: XDoclet Components: JDO Module Fix Fors: 1.3 Versions: 1.2.3 Assignee: xdoclet-devel (Use for new issues) Reporter: Marco Schulze Created: Sat, 19 Mar 2005 6:23 PM Updated: Thu, 14 Jul 2005 8:30 PM Description: I've added a new class tag: @jdo.query This tag currently is translated to <jdo>/<package>/<class>/<query>, but according to the DTD, it can be additionally declared globally: <jdo>/<query> Because I cannot put the @jdo.query tag at a higher level than the class, I want to add an optional parameter "global=true|false". This param will default to false, because a query will be used mostly within the context of a class. Now my problem: I have to iterate everything twice, because first I have to scan all *.java files and create the <jdo>/<query> XML elements and in the second run, the <package> elements (incl. content) are added. Unfortunately, I cannot iterate twice: In the second run, only the last class is processed. This happens in the jdo-file-per-package-mode. I've added the following lines in jdo_xml.xdt directly under <jdo>: <XDtConfig:ifConfigParamEquals paramName="jdospec" value="2.0"> <XDtJdo:forAllPackages> <XDtJdo:forAllClassesInPackage> <XDtClass:forAllClassTags tagName="jdo.query" superclasses="false"> <XDtClass:ifClassTagValueEquals tagName="jdo.query" paramName="global" value="true" superclasses="false"> <query name="<XDtClass:classTagValue tagName="jdo.query" paramName="name"/>" <XDtClass:ifHasClassTag tagName="jdo.query" paramName="language" superclasses="false"> language="<XDtClass:classTagValue tagName="jdo.query" paramName="language"/>" </XDtClass:ifHasClassTag> > <![CDATA[<XDtClass:classTagValue tagName="jdo.query" paramName="query"/>]]> </query> </XDtClass:ifClassTagValueEquals> </XDtClass:forAllClassTags> </XDtJdo:forAllClassesInPackage> </XDtJdo:forAllPackages> </XDtConfig:ifConfigParamEquals> Is this code wrong or are there bugs in the XDoclet iterators? Marco :-) --------------------------------------------------------------------- JIRA INFORMATION: 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 If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel