Hi,

One of the projects that I am working on has a fairly large exclude list
for javadoc packages. maven-javadoc-plugin requires me to put this in
on line in the pom, which makes it very hard to read. I think it would
be nicer to allow separating the items in the list with newlines and
other whitespace characters.

The attached patch does this.

Sorry if this is not the right place to post this patch.

Thanks,
Omair

-- 
PGP Key: 66484681 (http://pgp.mit.edu/)
Fingerprint = F072 555B 0A17 3957 4E95  0056 F286 F14F 6648 4681
Index: src/main/java/org/apache/maven/plugin/javadoc/AbstractJavadocMojo.java
===================================================================
--- src/main/java/org/apache/maven/plugin/javadoc/AbstractJavadocMojo.java      
(revision 1562153)
+++ src/main/java/org/apache/maven/plugin/javadoc/AbstractJavadocMojo.java      
(working copy)
@@ -2399,7 +2399,7 @@
         // for the specified excludePackageNames
         if ( StringUtils.isNotEmpty( excludePackageNames ) )
         {
-            excluded.addAll( Arrays.asList( excludePackageNames.split( "[,:;]" 
) ) );
+            excluded.addAll( Arrays.asList( excludePackageNames.split( 
"[\\s,:;]+" ) ) );
         }
 
         String[] result = new String[excluded.size()];

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to