ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: cvs commit: ant/docs/manual/CoreTypes custom-programming.html
Date Wed, 13 Aug 2003 08:44:51 GMT
>       <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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message