maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From denn...@apache.org
Subject svn commit: r1037536 - /maven/shared/trunk/maven-archiver/src/main/java/org/apache/maven/archiver/MavenArchiver.java
Date Sun, 21 Nov 2010 19:40:04 GMT
Author: dennisl
Date: Sun Nov 21 19:40:03 2010
New Revision: 1037536

URL: http://svn.apache.org/viewvc?rev=1037536&view=rev
Log:
[MSHARED-131] Maven archiver does not manage empty classifier correctly in manifest.mf classpath

Modified:
    maven/shared/trunk/maven-archiver/src/main/java/org/apache/maven/archiver/MavenArchiver.java

Modified: maven/shared/trunk/maven-archiver/src/main/java/org/apache/maven/archiver/MavenArchiver.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-archiver/src/main/java/org/apache/maven/archiver/MavenArchiver.java?rev=1037536&r1=1037535&r2=1037536&view=diff
==============================================================================
--- maven/shared/trunk/maven-archiver/src/main/java/org/apache/maven/archiver/MavenArchiver.java
(original)
+++ maven/shared/trunk/maven-archiver/src/main/java/org/apache/maven/archiver/MavenArchiver.java
Sun Nov 21 19:40:03 2010
@@ -239,7 +239,7 @@ public class MavenArchiver
                             }
                             
                             extraExpressions.setProperty( "groupIdPath", artifact.getGroupId().replace(
'.', '/' ) );
-                            if ( artifact.getClassifier() != null )
+                            if ( StringUtils.isNotEmpty( artifact.getClassifier() ) )
                             {
                                 extraExpressions.setProperty( "dashClassifier", "-" + artifact.getClassifier()
);
                                 extraExpressions.setProperty( "dashClassifier?", "-" + artifact.getClassifier()
);



Mime
View raw message