User: vharcq  
  Date: 02/04/18 00:14:00

  Modified:    core/src/xdoclet/tags ClassTagsHandler.java
  Log:
  Consider @version @author and @todo like any other tags
  Exclude @version by excludedtags and add it again by addedtags to not have the 
$Revision$ change cvs issue.
  
  Revision  Changes    Path
  1.37      +7 -11     xdoclet/core/src/xdoclet/tags/ClassTagsHandler.java
  
  Index: ClassTagsHandler.java
  ===================================================================
  RCS file: /cvsroot/xdoclet/xdoclet/core/src/xdoclet/tags/ClassTagsHandler.java,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -w -r1.36 -r1.37
  --- ClassTagsHandler.java     18 Apr 2002 06:16:01 -0000      1.36
  +++ ClassTagsHandler.java     18 Apr 2002 07:14:00 -0000      1.37
  @@ -24,7 +24,7 @@
   /**
    * @author    Ara Abrahamian ([EMAIL PROTECTED])
    * @created   Oct 14, 2001
  - * @version   $Revision: 1.36 $
  + * @version   $Revision: 1.37 $
    */
   public class ClassTagsHandler extends AbstractProgramElementTagsHandler
   {
  @@ -681,9 +681,6 @@
         * @see                         
MethodTagsHandler#methodComment(java.util.Properties)
         * @see                         #classComment(java.util.Properties)
         * @doc:tag                     type="content"
  -      * @doc:param                   name="include-xdoclet-generated"
  -      *      optional="true" values="true,false" description="If false then don't
  -      *      add an xdoclet-generated tag. Default is true."
         */
        public String classCommentTags( Properties attributes ) throws XDocletException
        {
  @@ -693,17 +690,16 @@
   
                for( int i = 0; i < class_tags.length; i++ )
                {
  -                     //omit ejbdoclet-specific tags, which all have a ":" or "."
  +
                        String class_tag = class_tags[i].name();
   
  -                     if( class_tag.indexOf( ':' ) == -1 && class_tag.indexOf( '.' ) 
== -1
  -                              && ( class_tags[i].name().equalsIgnoreCase( "version" 
)
  -                              || ( class_tags[i].name().equalsIgnoreCase( "author" 
) ) ) )
  +                     // omit ejbdoclet-specific tags, which all have a ":" or "."
  +                     if( class_tag.indexOf( ':' ) == -1 && class_tag.indexOf( '.' ) 
== -1 )
                        {
  -                             result.append( spaces ).append( " * @" ).append( 
class_tags[i].name() ).append( ' ' );
  -
  -                             if( getDocletContext().getExcludedTags().indexOf( 
class_tags[i].name() ) == -1 )
  +                             // omit excluded tags
  +                             if( getDocletContext().getExcludedTags().indexOf( 
class_tag ) == -1 )
                                {
  +                                     result.append( spaces ).append( " * @" 
).append( class_tag ).append( ' ' );
                                        result.append( class_tags[i].value() ).append( 
PrettyPrintWriter.LINE_SEPARATOR );
                                }
                        }
  
  
  

_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to