ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r377942 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Javadoc.java
Date Wed, 15 Feb 2006 05:27:58 GMT
Author: bodewig
Date: Tue Feb 14 21:27:55 2006
New Revision: 377942

URL: http://svn.apache.org/viewcvs?rev=377942&view=rev
Log:
javadoc doesn't like the palckage name '', skip it

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Javadoc.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Javadoc.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Javadoc.java?rev=377942&r1=377941&r2=377942&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Javadoc.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Javadoc.java Tue Feb 14 21:27:55
2006
@@ -2136,12 +2136,20 @@
                     });
 
                 if (files.length > 0) {
+                    if ("".equals(dirs[i])) {
+                        log(baseDir
+                            + " contains source files in the default package,"
+                            + " you must specify them as source files"
+                            + " not packages.",
+                            Project.MSG_WARN);
+                    } else {
                     containsPackages = true;
                     String packageName =
                         dirs[i].replace(File.separatorChar, '.');
                     if (!addedPackages.contains(packageName)) {
                         addedPackages.addElement(packageName);
                         pn.addElement(packageName);
+                    }
                     }
                 }
             }



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


Mime
View raw message