>       <h3><a name="customselectors">Custom Selectors</a></h3>
>       <p>
>         Custom selectors are datatypes that implement
>         
> <code>org.apache.tools.ant.types.selectors.FileSelector</code>.
>         <p>There is only one method required.
>           <code>public boolean isSelected(File basedir, 
> String filename,
>             File file)</code>.
>           It returns true
>           or false depending on whether the given file should be
>           selected or not.
>         </p>
>       <p>
>         An example of a custom selection that selects filenames ending
>         in ".java" would be:
>       </p>
>       <blockquote>
>         <pre>
>   package com.mydomain;
>   import org.apache.tools.ant.types.selectors.FileSelector;
>   public class JavaSelector {



The class donīt have to implement the interface ???


For writing Selectors I had improved the selectors-program.html.
Mmm - not introduced into CVS yet. So see at 
http://nagoya.apache.org/bugzilla/showattachment.cgi?attach_id=7049
Improved for writing implementation and tests for selectors.



Jan

Reply via email to