evenisse    2003/03/21 06:14:19

  Modified:    src/plugins-build/javadoc plugin.jelly
  Log:
  Add custom tags support. This option is only available with Java 1.4.
  
  Revision  Changes    Path
  1.12      +15 -0     maven/src/plugins-build/javadoc/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/javadoc/plugin.jelly,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- plugin.jelly      4 Mar 2003 02:27:54 -0000       1.11
  +++ plugin.jelly      21 Mar 2003 14:14:19 -0000      1.12
  @@ -122,6 +122,21 @@
           <j:if test="${context.getVariable('maven.javadoc.docletpath') != null}">
             <setProperty name="doclet" value="${maven.javadoc.docletpath}" />
           </j:if>
  +        
  +        <!-- allow custom tags -->    
  +        <util:tokenize var="listOfTags" delim=" 
">${maven.javadoc.customtags}</util:tokenize>
  +        <j:forEach var="someTag" items="${listOfTags}">
  +          <j:set var="nameVar" value="${someTag}.name"/>
  +          <j:set var="name" value="${context.findVariable(nameVar)}"/>
  +          <j:set var="descriptionVar" value="${someTag}.description"/>
  +          <j:set var="description" value="${context.findVariable(descriptionVar)}"/>
  +          <j:set var="enabledVar" value="${someTag}.enabled"/>
  +          <j:set var="enabled" value="${context.findVariable(enabledVar)}"/>
  +          <j:set var="scopeVar" value="${someTag}.scope"/>
  +          <j:set var="scope" value="${context.findVariable(scopeVar)}"/>
  +          <tag name="${name}" description="${description}"
  +               enabled="${enabled}" scope="${scope}"/>
  +        </j:forEach>
   
         </javadoc>
         <record name="${maven.build.dir}/javadoc/report.txt" action="stop" />
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to