From ec45015f60f6e63500a960fe6a16f002f2879f93 Mon Sep 17 00:00:00 2001 From: acolyer Date: Thu, 29 Jul 2004 16:41:05 +0000 Subject: [PATCH] fix for Bugzilla Bug 40206 need common isAspectJSourceFile() method --- ajdoc/src/org/aspectj/tools/ajdoc/Main.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ajdoc/src/org/aspectj/tools/ajdoc/Main.java b/ajdoc/src/org/aspectj/tools/ajdoc/Main.java index 53514a29d..2cff8de2c 100644 --- a/ajdoc/src/org/aspectj/tools/ajdoc/Main.java +++ b/ajdoc/src/org/aspectj/tools/ajdoc/Main.java @@ -554,8 +554,7 @@ public class Main implements Config { // check if this is a file or a package // System.err.println(">>>>>>>> " + ); String entryName = arg.substring(arg.lastIndexOf(File.separator)+1); - if ((arg.endsWith(".java") && entryName.indexOf('.') == entryName.length()-5) - || (arg.endsWith(".aj") && entryName.indexOf('.') == entryName.length()-3) + if (FileUtil.hasSourceSuffix(arg) || arg.endsWith(".lst") && arg != null ) { File f = new File(arg); -- 2.39.5