maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r637335 - /maven/plugins/trunk/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/resource/ApacheNoticeResourceTransformer.java
Date Sat, 15 Mar 2008 02:17:11 GMT
Author: dkulp
Date: Fri Mar 14 19:17:08 2008
New Revision: 637335

URL: http://svn.apache.org/viewvc?rev=637335&view=rev
Log:
Fix for NOTICE files not having all the content

Modified:
    maven/plugins/trunk/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/resource/ApacheNoticeResourceTransformer.java

Modified: maven/plugins/trunk/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/resource/ApacheNoticeResourceTransformer.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/resource/ApacheNoticeResourceTransformer.java?rev=637335&r1=637334&r2=637335&view=diff
==============================================================================
--- maven/plugins/trunk/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/resource/ApacheNoticeResourceTransformer.java
(original)
+++ maven/plugins/trunk/maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/resource/ApacheNoticeResourceTransformer.java
Fri Mar 14 19:17:08 2008
@@ -155,6 +155,17 @@
 
             line = reader.readLine();
         }
+        if ( sb.length() > 0 ) 
+        {
+            if ( currentOrg == null )
+            {
+                entries.add( sb.toString() );
+            }
+            else
+            {
+                currentOrg.add( sb.toString() );
+            }
+        }
     }
 
     public boolean hasTransformedResource()



Mime
View raw message