xjavadoc.ant
Class XJavadocFilter

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.types.DataType
          extended byorg.apache.tools.ant.types.selectors.BaseSelector
              extended byorg.apache.tools.ant.types.selectors.BaseExtendSelector
                  extended byxjavadoc.ant.XJavadocFilter
All Implemented Interfaces:
org.apache.tools.ant.types.selectors.ExtendFileSelector, org.apache.tools.ant.types.selectors.FileSelector, org.apache.tools.ant.types.Parameterizable

public class XJavadocFilter
extends org.apache.tools.ant.types.selectors.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(java.io.File basedir, java.lang.String filename, java.io.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(java.io.File basedir,
                          java.lang.String filename,
                          java.io.File file)
                   throws org.apache.tools.ant.BuildException
Parameters:
basedir -
filename -
file -
Returns:
Throws:
org.apache.tools.ant.BuildException
See Also:
FileSelector.isSelected(File, String, File)


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