You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by mb...@apache.org on 2005/02/05 00:22:17 UTC

cvs commit: ant/src/main/org/apache/tools/ant/types AbstractFileSet.java

mbenson     2005/02/04 15:22:16

  Modified:    src/main/org/apache/tools/ant/types AbstractFileSet.java
  Log:
  +2 convenience methods
  
  Revision  Changes    Path
  1.38      +17 -0     ant/src/main/org/apache/tools/ant/types/AbstractFileSet.java
  
  Index: AbstractFileSet.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/types/AbstractFileSet.java,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- AbstractFileSet.java	4 Feb 2005 08:08:59 -0000	1.37
  +++ AbstractFileSet.java	4 Feb 2005 23:22:16 -0000	1.38
  @@ -122,6 +122,14 @@
   
       /**
        * Retrieves the base-directory for this instance.
  +     * @return <code>File</code>.
  +     */
  +    public synchronized File getDir() {
  +        return getDir(getProject());
  +    }
  +
  +    /**
  +     * Retrieves the base-directory for this instance.
        * @param p the <code>Project</code> against which the
        *          reference is resolved, if set.
        * @return <code>File</code>.
  @@ -386,6 +394,15 @@
        * Returns the directory scanner needed to access the files to process.
        * @return a <code>DirectoryScanner</code> instance.
        */
  +    public DirectoryScanner getDirectoryScanner() {
  +        return getDirectoryScanner(getProject());
  +    }
  +
  +    /**
  +     * Returns the directory scanner needed to access the files to process.
  +     * @param p the Project against which the DirectoryScanner should be configured.
  +     * @return a <code>DirectoryScanner</code> instance.
  +     */
       public DirectoryScanner getDirectoryScanner(Project p) {
           if (isReference()) {
               return getRef(p).getDirectoryScanner(p);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org