]> source.dussan.org Git - aspectj.git/commitdiff
fix for Bugzilla Bug 40206
authoracolyer <acolyer>
Thu, 29 Jul 2004 16:41:05 +0000 (16:41 +0000)
committeracolyer <acolyer>
Thu, 29 Jul 2004 16:41:05 +0000 (16:41 +0000)
  need common isAspectJSourceFile() method

ajdoc/src/org/aspectj/tools/ajdoc/Main.java

index 53514a29d4132473c3f0138ad40814cc2ca0feee..2cff8de2c844041ad1183a91f2c75b2785405812 100644 (file)
@@ -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);