diff options
author | wisberg <wisberg> | 2003-10-31 19:32:29 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2003-10-31 19:32:29 +0000 |
commit | 6a0c00d244111422c0a1685217ddb4092fe87551 (patch) | |
tree | 6722821ae8b193da967cfd2f3634f0921f68c8a1 /util | |
parent | dd5ef5ce8c31ef643d2f1a40a0cfcf46e32ca6e4 (diff) | |
download | aspectj-6a0c00d244111422c0a1685217ddb4092fe87551.tar.gz aspectj-6a0c00d244111422c0a1685217ddb4092fe87551.zip |
FileFilters for zip files and source files
Diffstat (limited to 'util')
-rw-r--r-- | util/src/org/aspectj/util/FileUtil.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/util/src/org/aspectj/util/FileUtil.java b/util/src/org/aspectj/util/FileUtil.java index c9d5fe324..a15600054 100644 --- a/util/src/org/aspectj/util/FileUtil.java +++ b/util/src/org/aspectj/util/FileUtil.java @@ -31,6 +31,24 @@ public class FileUtil { public static final List SOURCE_SUFFIXES = Collections.unmodifiableList(Arrays.asList(new String[] { ".java", ".aj"})); + public static final FileFilter ZIP_FILTER = new FileFilter() { + public boolean accept(File file) { + return hasZipSuffix(file); + } + public String toString() { + return "ZIP_FILTER"; + } + }; + + public static final FileFilter SOURCE_FILTER = new FileFilter() { + public boolean accept(File file) { + return hasSourceSuffix(file); + } + public String toString() { + return "SOURCE_FILTER"; + } + }; + final static int[] INT_RA = new int[0]; /** accept all files */ |