svn commit: r1814989 - in /maven/plugins/trunk/maven-scm-publish-plugin: pom.xml src/main/java/org/apache/maven/plugins/scmpublish/AbstractScmPublishMojo.java src/main/java/org/apache/maven/plugins/scmpublish/ScmPublishPublishScmMojo.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1814989 - in /maven/plugins/trunk/maven-scm-publish-plugin: pom.xml src/main/java/org/apache/maven/plugins/scmpublish/AbstractScmPublishMojo.java src/main/java/org/apache/maven/plugins/scmpublish/ScmPublishPublishScmMojo.java

hboutemy
Author: hboutemy
Date: Sat Nov 11 22:11:46 2017
New Revision: 1814989

URL: http://svn.apache.org/viewvc?rev=1814989&view=rev
Log:
[MSCMPUB-33] added color to key message parts to improve UX

Modified:
    maven/plugins/trunk/maven-scm-publish-plugin/pom.xml
    maven/plugins/trunk/maven-scm-publish-plugin/src/main/java/org/apache/maven/plugins/scmpublish/AbstractScmPublishMojo.java
    maven/plugins/trunk/maven-scm-publish-plugin/src/main/java/org/apache/maven/plugins/scmpublish/ScmPublishPublishScmMojo.java

Modified: maven/plugins/trunk/maven-scm-publish-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-scm-publish-plugin/pom.xml?rev=1814989&r1=1814988&r2=1814989&view=diff
==============================================================================
--- maven/plugins/trunk/maven-scm-publish-plugin/pom.xml (original)
+++ maven/plugins/trunk/maven-scm-publish-plugin/pom.xml Sat Nov 11 22:11:46 2017
@@ -124,6 +124,11 @@ under the License.
       <scope>test</scope>
     </dependency>
     <dependency>
+      <groupId>org.apache.maven.shared</groupId>
+      <artifactId>maven-shared-utils</artifactId>
+      <version>3.2.0</version>
+    </dependency>
+    <dependency>
       <groupId>org.codehaus.jackson</groupId>
       <artifactId>jackson-core-asl</artifactId>
       <version>1.9.4</version>

Modified: maven/plugins/trunk/maven-scm-publish-plugin/src/main/java/org/apache/maven/plugins/scmpublish/AbstractScmPublishMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-scm-publish-plugin/src/main/java/org/apache/maven/plugins/scmpublish/AbstractScmPublishMojo.java?rev=1814989&r1=1814988&r2=1814989&view=diff
==============================================================================
--- maven/plugins/trunk/maven-scm-publish-plugin/src/main/java/org/apache/maven/plugins/scmpublish/AbstractScmPublishMojo.java (original)
+++ maven/plugins/trunk/maven-scm-publish-plugin/src/main/java/org/apache/maven/plugins/scmpublish/AbstractScmPublishMojo.java Sat Nov 11 22:11:46 2017
@@ -62,6 +62,7 @@ import org.apache.maven.settings.crypto.
 import org.apache.maven.settings.crypto.SettingsDecryptionResult;
 import org.apache.maven.shared.release.config.ReleaseDescriptor;
 import org.apache.maven.shared.release.scm.ScmRepositoryConfigurator;
+import org.apache.maven.shared.utils.logging.MessageUtils;
 
 /**
  * Base class for the scm-publish mojos.
@@ -372,8 +373,8 @@ public abstract class AbstractScmPublish
             checkCreateRemoteSvnPath();
         }
 
-        logInfo( "%s the pub tree from %s into %s", ( tryUpdate ? "Updating" : "Checking out" ), pubScmUrl,
-                 checkoutDirectory );
+        logInfo( MessageUtils.buffer().strong( "%s" ) + " the pub tree from " + MessageUtils.buffer().strong( "%s" )
+            + " into %s", ( tryUpdate ? "Updating" : "Checking out" ), pubScmUrl, checkoutDirectory );
 
         if ( checkoutDirectory.exists() && !tryUpdate )
 

Modified: maven/plugins/trunk/maven-scm-publish-plugin/src/main/java/org/apache/maven/plugins/scmpublish/ScmPublishPublishScmMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-scm-publish-plugin/src/main/java/org/apache/maven/plugins/scmpublish/ScmPublishPublishScmMojo.java?rev=1814989&r1=1814988&r2=1814989&view=diff
==============================================================================
--- maven/plugins/trunk/maven-scm-publish-plugin/src/main/java/org/apache/maven/plugins/scmpublish/ScmPublishPublishScmMojo.java (original)
+++ maven/plugins/trunk/maven-scm-publish-plugin/src/main/java/org/apache/maven/plugins/scmpublish/ScmPublishPublishScmMojo.java Sat Nov 11 22:11:46 2017
@@ -44,6 +44,7 @@ import org.apache.maven.plugin.MojoFailu
 import org.apache.maven.plugins.annotations.Mojo;
 import org.apache.maven.plugins.annotations.Parameter;
 import org.apache.maven.project.MavenProject;
+import org.apache.maven.shared.utils.logging.MessageUtils;
 import org.codehaus.plexus.util.MatchPatterns;
 
 /**
@@ -253,14 +254,16 @@ public class ScmPublishPublishScmMojo
             logInfo( "Updating checkout directory with actual content in %s", content );
             update( checkoutDirectory, content, ( project == null ) ? null : project.getModel().getModules() );
             String displaySize = org.apache.commons.io.FileUtils.byteCountToDisplaySize( size );
-            logInfo( "Content consists of %d directories and %d files = %s", directories, files, displaySize );
+            logInfo( "Content consists of " + MessageUtils.buffer().strong( "%d directories and %d files = %s" ),
+                     directories, files, displaySize );
         }
         catch ( IOException ioe )
         {
             throw new MojoExecutionException( "Could not copy content to SCM checkout", ioe );
         }
 
-        logInfo( "Publishing content to SCM will result in %d addition(s), %d update(s), %d delete(s)", added.size(),
+        logInfo( "Publishing content to SCM will result in "
+            + MessageUtils.buffer().strong( "%d addition(s), %d update(s), %d delete(s)" ), added.size(),
                  updated.size(), deleted.size() );
 
         if ( isDryRun() )