maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1525844 - /maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocJar.java
Date Tue, 24 Sep 2013 11:03:17 GMT
Author: olamy
Date: Tue Sep 24 11:03:17 2013
New Revision: 1525844

URL: http://svn.apache.org/r1525844
Log:
[MJAVADOC-376] please add property 'maven.javadoc.classifier'
Submitted by ryenus
from https://github.com/apache/maven-plugins/pull/14

Modified:
    maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocJar.java

Modified: maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocJar.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocJar.java?rev=1525844&r1=1525843&r2=1525844&view=diff
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocJar.java
(original)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocJar.java
Tue Sep 24 11:03:17 2013
@@ -150,6 +150,12 @@ public class JavadocJar
     @Parameter( defaultValue = "false" )
     private boolean useDefaultManifestFile;
 
+    /**
+     * @since 2.9.2
+     */
+    @Parameter( property = "maven.javadoc.classifier", defaultValue = "javadoc" )
+    protected String classifier;
+
     /** {@inheritDoc} */
     public void execute()
         throws MojoExecutionException
@@ -223,7 +229,7 @@ public class JavadocJar
      */
     protected String getClassifier()
     {
-        return "javadoc";
+        return classifier;
     }
 
     // ----------------------------------------------------------------------



Mime
View raw message