Browse Source

Make <javadoc> ignore .java files in directories containing a "-".

You cannot have a package name with a "-" in it anyway so these files
are something different. In my case I had example files in the
.../doc-files directory and javadoc died because I've used the same
classname (Example) in several places.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267992 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 25 years ago
parent
commit
4771d246a4
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/main/org/apache/tools/ant/taskdefs/Javadoc.java

+ 2
- 1
src/main/org/apache/tools/ant/taskdefs/Javadoc.java View File

@@ -843,7 +843,8 @@ public class Javadoc extends Task {
return false;
}
File d = new File(dir1, name);
if (d.isDirectory()) {
if (d.isDirectory()
&& d.getName().indexOf("-") == -1) {
return true;
}
return false;


Loading…
Cancel
Save