ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: javadoc changes: have they broken xdoclet?
Date Tue, 30 Apr 2002 09:54:53 GMT
On Tue, 30 Apr 2002, Erik Hatcher <jakarta-ant@ehatchersolutions.com>
wrote:

> We anxiously await your patch!  :)

Trivial:

Index: src/main/org/apache/tools/ant/taskdefs/Javadoc.java
===================================================================
RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Javadoc.java,v
retrieving revision 1.95
diff -u -r1.95 Javadoc.java
--- src/main/org/apache/tools/ant/taskdefs/Javadoc.java	26 Apr 2002 16:06:52 -00
00	1.95
+++ src/main/org/apache/tools/ant/taskdefs/Javadoc.java	30 Apr 2002 09:53:50 -0000
@@ -1794,7 +1794,7 @@
         // taken from packagenames attribute and nested package
         // elements and excludes taken from excludepackages attribute
         // and nested excludepackage elements
-        if (sourcePath != null) {
+        if (sourcePath != null && packageNames.size() > 0) {
             PatternSet ps = new PatternSet();
             Enumeration enum = packageNames.elements();
             while (enum.hasMoreElements()) {
@@ -1859,6 +1859,9 @@
             }
             if (containsPackages) {
                 sp.createPathElement().setLocation(baseDir);
+            } else {
+                log(baseDir + " doesn\'t contain any packages, dropping it.",
+                    Project.MSG_VERBOSE); 
             }
         }
     }

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message