From 2ec27dacd9bb565c01e34c87521c622a20ae435f Mon Sep 17 00:00:00 2001 From: acolyer Date: Thu, 29 Jul 2004 16:35:10 +0000 Subject: fix for Bugzilla Bug 40206 need common isAspectJSourceFile() method --- taskdefs/src/org/aspectj/tools/ant/taskdefs/Ajc10.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'taskdefs/src/org/aspectj/tools') 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++; } -- cgit v1.2.3