ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@locus.apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Javadoc.java
Date Thu, 14 Sep 2000 13:36:51 GMT
bodewig     00/09/14 06:36:47

  Modified:    src/main/org/apache/tools/ant/taskdefs Javadoc.java
  Log:
  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.
  
  Revision  Changes    Path
  1.34      +2 -1      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Javadoc.java
  
  Index: Javadoc.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Javadoc.java,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- Javadoc.java	2000/09/06 14:04:58	1.33
  +++ Javadoc.java	2000/09/14 13:36:45	1.34
  @@ -843,7 +843,8 @@
       					return false;
       				}
       				File d = new File(dir1, name);
  -    				if (d.isDirectory()) {
  +    				if (d.isDirectory() 
  +                                    && d.getName().indexOf("-") == -1) {
       					return true;
       				}
       				return false;
  
  
  

Mime
View raw message