diff options
author | acolyer <acolyer> | 2004-07-29 16:41:05 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2004-07-29 16:41:05 +0000 |
commit | ec45015f60f6e63500a960fe6a16f002f2879f93 (patch) | |
tree | 8c1cbe58ad2eb29e6d68b9e5d4884ebb6e272893 /ajdoc/src | |
parent | 2ec27dacd9bb565c01e34c87521c622a20ae435f (diff) | |
download | aspectj-ec45015f60f6e63500a960fe6a16f002f2879f93.tar.gz aspectj-ec45015f60f6e63500a960fe6a16f002f2879f93.zip |
fix for Bugzilla Bug 40206
need common isAspectJSourceFile() method
Diffstat (limited to 'ajdoc/src')
-rw-r--r-- | ajdoc/src/org/aspectj/tools/ajdoc/Main.java | 3 |
1 files changed, 1 insertions, 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); |