|
|
@@ -116,12 +116,6 @@ public class FileSet extends DataType { |
|
|
|
throw tooManyAttributes(); |
|
|
|
} |
|
|
|
|
|
|
|
if (!dir.exists()) { |
|
|
|
throw new BuildException(dir.getAbsolutePath()+" not found."); |
|
|
|
} |
|
|
|
if (!dir.isDirectory()) { |
|
|
|
throw new BuildException(dir.getAbsolutePath()+" is not a directory."); |
|
|
|
} |
|
|
|
this.dir = dir; |
|
|
|
} |
|
|
|
|
|
|
@@ -242,6 +236,13 @@ public class FileSet extends DataType { |
|
|
|
throw new BuildException("No directory specified for fileset."); |
|
|
|
} |
|
|
|
|
|
|
|
if (!dir.exists()) { |
|
|
|
throw new BuildException(dir.getAbsolutePath()+" not found."); |
|
|
|
} |
|
|
|
if (!dir.isDirectory()) { |
|
|
|
throw new BuildException(dir.getAbsolutePath()+" is not a directory."); |
|
|
|
} |
|
|
|
|
|
|
|
DirectoryScanner ds = new DirectoryScanner(); |
|
|
|
setupDirectoryScanner(ds, p); |
|
|
|
ds.scan(); |
|
|
|