maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r399107 - /maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/DefaultReleaseManager.java
Date Wed, 03 May 2006 02:08:41 GMT
Author: brett
Date: Tue May  2 19:08:37 2006
New Revision: 399107

URL: http://svn.apache.org/viewcvs?rev=399107&view=rev
Log:
[MRELEASE-98] improved info on progress when resuming

Modified:
    maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/DefaultReleaseManager.java

Modified: maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/DefaultReleaseManager.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/DefaultReleaseManager.java?rev=399107&r1=399106&r2=399107&view=diff
==============================================================================
--- maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/DefaultReleaseManager.java
(original)
+++ maven/plugins/trunk/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/DefaultReleaseManager.java
Tue May  2 19:08:37 2006
@@ -106,6 +106,16 @@
         String completedPhase = config.getCompletedPhase();
         int index = phases.indexOf( completedPhase );
 
+        if ( index == phases.size() - 1 )
+        {
+            getLogger().info(
+                "Release preparation already completed. You can now continue with release:perform,
or start again using the -Dresume=false flag" );
+        }
+        else if ( index >= 0 )
+        {
+            getLogger().info( "Resuming release from phase '" + phases.get( index + 1 ) +
"'" );
+        }
+
         // start from next phase
         for ( int i = index + 1; i < phases.size(); i++ )
         {



Mime
View raw message