From c9c8d0cab69f9f4e98422479ee13eb7bab3a34c9 Mon Sep 17 00:00:00 2001 From: Matthew Jason Benson Date: Fri, 4 Feb 2005 23:22:16 +0000 Subject: [PATCH] +2 convenience methods git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277605 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/tools/ant/types/AbstractFileSet.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/main/org/apache/tools/ant/types/AbstractFileSet.java b/src/main/org/apache/tools/ant/types/AbstractFileSet.java index 1edd24aba..346d604cd 100644 --- a/src/main/org/apache/tools/ant/types/AbstractFileSet.java +++ b/src/main/org/apache/tools/ant/types/AbstractFileSet.java @@ -120,6 +120,14 @@ public abstract class AbstractFileSet extends DataType this.dir = dir; } + /** + * Retrieves the base-directory for this instance. + * @return File. + */ + public synchronized File getDir() { + return getDir(getProject()); + } + /** * Retrieves the base-directory for this instance. * @param p the Project against which the @@ -386,6 +394,15 @@ public abstract class AbstractFileSet extends DataType * Returns the directory scanner needed to access the files to process. * @return a DirectoryScanner 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 DirectoryScanner instance. + */ public DirectoryScanner getDirectoryScanner(Project p) { if (isReference()) { return getRef(p).getDirectoryScanner(p);