xjavadoc.ant
Class XJavadocFilter

java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.types.DataType
              |
              +--org.apache.tools.ant.types.selectors.BaseSelector
                    |
                    +--org.apache.tools.ant.types.selectors.BaseExtendSelector
                          |
                          +--xjavadoc.ant.XJavadocFilter
All Implemented Interfaces:
ExtendFileSelector, FileSelector, Parameterizable

public class XJavadocFilter
extends BaseExtendSelector

Custom file filter for Ant based on XJavadoc. Filters java sources according to some Java specific features.
Usage:

<copy todir="filtered-src">
   <fileset dir="src">
      <or>
         <custom classname="xjavadoc.XJavadocFilter" classpathref="lib.jars">
            <parameter name="implements" value="javax.ejb.EntityBean" />
         </custom>
         <custom classname="xjavadoc.XJavadocFilter" classpathref="lib.jars">
            <parameter name="implements" value="javax.ejb.SessionBean" />
         </custom>
      </or>
   </fileset>
</copy>
Valid parameters are:
implements
full qualified name of the class or interface to implement
contains-tag
javadoc tag to contain

Version:
$Revision: 1.4 $
Author:
Ludovic Claude

Field Summary
 
Fields inherited from class org.apache.tools.ant.types.selectors.BaseExtendSelector
parameters
 
Fields inherited from class org.apache.tools.ant.types.DataType
checked, description, ref
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
XJavadocFilter()
          Constructor for XJavadocFilter.
 
Method Summary
 boolean isSelected(File basedir, String filename, File file)
           
 
Methods inherited from class org.apache.tools.ant.types.selectors.BaseExtendSelector
getParameters, setParameters
 
Methods inherited from class org.apache.tools.ant.types.selectors.BaseSelector
getError, setError, validate, verifySettings
 
Methods inherited from class org.apache.tools.ant.types.DataType
circularReference, dieOnCircularReference, getCheckedRef, getDescription, isReference, noChildrenAllowed, setDescription, setRefid, tooManyAttributes
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, log, log, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XJavadocFilter

public XJavadocFilter()
Constructor for XJavadocFilter.

Method Detail

isSelected

public boolean isSelected(File basedir,
                          String filename,
                          File file)
                   throws BuildException
Specified by:
isSelected in interface FileSelector
Specified by:
isSelected in class BaseExtendSelector
Parameters:
basedir -
filename -
file -
Returns:
Throws:
BuildException
See Also:
FileSelector.isSelected(File, String, File)


Copyright © 2002-2003 XDoclet Team. All Rights Reserved.