maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r756207 - in /maven/plugins/trunk/maven-install-plugin/src: it/jar-sources-javadoc/ main/java/org/apache/maven/plugin/install/
Date Thu, 19 Mar 2009 21:18:50 GMT
Author: bentmann
Date: Thu Mar 19 21:18:49 2009
New Revision: 756207

URL: http://svn.apache.org/viewvc?rev=756207&view=rev
Log:
[MINSTALL-60] Support updateReleaseInfo for install-file

Modified:
    maven/plugins/trunk/maven-install-plugin/src/it/jar-sources-javadoc/test.properties
    maven/plugins/trunk/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/AbstractInstallMojo.java
    maven/plugins/trunk/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/InstallFileMojo.java
    maven/plugins/trunk/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/InstallMojo.java

Modified: maven/plugins/trunk/maven-install-plugin/src/it/jar-sources-javadoc/test.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-install-plugin/src/it/jar-sources-javadoc/test.properties?rev=756207&r1=756206&r2=756207&view=diff
==============================================================================
--- maven/plugins/trunk/maven-install-plugin/src/it/jar-sources-javadoc/test.properties (original)
+++ maven/plugins/trunk/maven-install-plugin/src/it/jar-sources-javadoc/test.properties Thu
Mar 19 21:18:49 2009
@@ -6,3 +6,4 @@
 javadoc = javadoc.jar
 sources = sources.jar
 createChecksum = true
+updateReleaseInfo = true

Modified: maven/plugins/trunk/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/AbstractInstallMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/AbstractInstallMojo.java?rev=756207&r1=756206&r2=756207&view=diff
==============================================================================
--- maven/plugins/trunk/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/AbstractInstallMojo.java
(original)
+++ maven/plugins/trunk/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/AbstractInstallMojo.java
Thu Mar 19 21:18:49 2009
@@ -71,6 +71,13 @@
     protected boolean createChecksum;
 
     /**
+     * Whether to update the metadata to make the artifact a release version.
+     *
+     * @parameter expression="${updateReleaseInfo}" default-value="false"
+     */
+    protected boolean updateReleaseInfo;
+
+    /**
      * Digester for MD5.
      *
      * @component role-hint="md5"

Modified: maven/plugins/trunk/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/InstallFileMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/InstallFileMojo.java?rev=756207&r1=756206&r2=756207&view=diff
==============================================================================
--- maven/plugins/trunk/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/InstallFileMojo.java
(original)
+++ maven/plugins/trunk/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/InstallFileMojo.java
Thu Mar 19 21:18:49 2009
@@ -247,6 +247,11 @@
             }
         }
 
+        if ( updateReleaseInfo )
+        {
+            artifact.setRelease( true );
+        }
+
         // TODO: maybe not strictly correct, while we should enforce that packaging has a
type handler of the same id,
         // we don't
         try

Modified: maven/plugins/trunk/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/InstallMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/InstallMojo.java?rev=756207&r1=756206&r2=756207&view=diff
==============================================================================
--- maven/plugins/trunk/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/InstallMojo.java
(original)
+++ maven/plugins/trunk/maven-install-plugin/src/main/java/org/apache/maven/plugin/install/InstallMojo.java
Thu Mar 19 21:18:49 2009
@@ -55,13 +55,6 @@
     private File pomFile;
 
     /**
-     * Whether to update the metadata to make the artifact a release version.
-     *
-     * @parameter expression="${updateReleaseInfo}" default-value="false"
-     */
-    private boolean updateReleaseInfo;
-
-    /**
      * @parameter expression="${project.artifact}"
      * @required
      * @readonly



Mime
View raw message