summaryrefslogtreecommitdiffstats
path: root/taskdefs
diff options
context:
space:
mode:
authoracolyer <acolyer>2004-07-29 16:35:10 +0000
committeracolyer <acolyer>2004-07-29 16:35:10 +0000
commit2ec27dacd9bb565c01e34c87521c622a20ae435f (patch)
treef4a31ee3827b6f19e959c556e690097ebc7176df /taskdefs
parent354314541812fa2ef5a561d422b022410555d498 (diff)
downloadaspectj-2ec27dacd9bb565c01e34c87521c622a20ae435f.tar.gz
aspectj-2ec27dacd9bb565c01e34c87521c622a20ae435f.zip
fix for Bugzilla Bug 40206
need common isAspectJSourceFile() method
Diffstat (limited to 'taskdefs')
-rw-r--r--taskdefs/src/org/aspectj/tools/ant/taskdefs/Ajc10.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/taskdefs/src/org/aspectj/tools/ant/taskdefs/Ajc10.java b/taskdefs/src/org/aspectj/tools/ant/taskdefs/Ajc10.java
index 39bec81d4..010a3e464 100644
--- a/taskdefs/src/org/aspectj/tools/ant/taskdefs/Ajc10.java
+++ b/taskdefs/src/org/aspectj/tools/ant/taskdefs/Ajc10.java
@@ -26,6 +26,7 @@ import org.aspectj.bridge.IMessageHolder;
import org.aspectj.bridge.MessageHandler;
import org.aspectj.tools.ajc.Main;
import org.aspectj.tools.ajc.Main.MessagePrinter;
+import org.aspectj.util.FileUtil;
import java.io.File;
import java.util.Arrays;
@@ -457,8 +458,7 @@ public class Ajc10 extends MatchingTask {
String[] files = getDirectoryScanner(dir).getIncludedFiles();
for (int j = 0; j < files.length; j++) {
File file = new File(dir, files[j]);
- if (file.getName().endsWith(".java")
- || file.getName().endsWith(".aj")) {
+ if (FileUtil.hasSourceSuffix(file)) {
cmd.createArgument().setFile(file);
numfiles++;
}