From 6a0c00d244111422c0a1685217ddb4092fe87551 Mon Sep 17 00:00:00 2001 From: wisberg Date: Fri, 31 Oct 2003 19:32:29 +0000 Subject: [PATCH] FileFilters for zip files and source files --- util/src/org/aspectj/util/FileUtil.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 */ -- 2.39.5