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);