svn commit: r1792172 - in /maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/logging: MessageUtils.java PlainMessageBuilder.java package-info.java

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

svn commit: r1792172 - in /maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/logging: MessageUtils.java PlainMessageBuilder.java package-info.java

Michael Osipov-2
Author: michaelo
Date: Fri Apr 21 09:55:10 2017
New Revision: 1792172

URL: http://svn.apache.org/viewvc?rev=1792172&view=rev
Log:
[MSHARED-630] Javadoc of several classes still references Maven 3.4.0 for color support

Modified:
    maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/logging/MessageUtils.java
    maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/logging/PlainMessageBuilder.java
    maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/logging/package-info.java

Modified: maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/logging/MessageUtils.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/logging/MessageUtils.java?rev=1792172&r1=1792171&r2=1792172&view=diff
==============================================================================
--- maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/logging/MessageUtils.java (original)
+++ maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/logging/MessageUtils.java Fri Apr 21 09:55:10 2017
@@ -23,8 +23,8 @@ import org.fusesource.jansi.Ansi;
 import org.fusesource.jansi.AnsiConsole;
 
 /**
- * Colored message utils, to manage colors consistently across plugins (only if Maven version is at least 3.4.0).
- * For Maven version before 3.4.0, message built with this util will never add color.
+ * Colored message utils, to manage colors consistently across plugins (only if Maven version is at least 3.5.0).
+ * For Maven version before 3.5.0, message built with this util will never add color.
  * <p>
  * Internally, <a href="http://fusesource.github.io/jansi/">Jansi</a> is used to render
  * <a href="https://en.wikipedia.org/wiki/ANSI_escape_code#Colors">ANSI colors</a> on any platform.
@@ -39,7 +39,7 @@ public class MessageUtils
         boolean jansi = true;
         try
         {
-            // JAnsi is provided by Maven core since 3.4.0
+            // JAnsi is provided by Maven core since 3.5.0
             Class.forName( "org.fusesource.jansi.Ansi" );
         }
         catch ( ClassNotFoundException cnfe )
@@ -51,7 +51,7 @@ public class MessageUtils
 
     /**
      * Install color support.
-     * This method is called by Maven core, and calling it is not necessary in plugins.
+     * This method is called by Maven core, and calling it is not necessary in plugins.
      */
     public static void systemInstall()
     {

Modified: maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/logging/PlainMessageBuilder.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/logging/PlainMessageBuilder.java?rev=1792172&r1=1792171&r2=1792172&view=diff
==============================================================================
--- maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/logging/PlainMessageBuilder.java (original)
+++ maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/logging/PlainMessageBuilder.java Fri Apr 21 09:55:10 2017
@@ -20,7 +20,7 @@ package org.apache.maven.shared.utils.lo
  */
 
 /**
- * Message builder implementation that just ignores styling, for Maven version earlier than 3.4.0.
+ * Message builder implementation that just ignores styling, for Maven version earlier than 3.5.0.
  */
 class PlainMessageBuilder
     implements MessageBuilder, LoggerLevelRenderer
@@ -46,17 +46,17 @@ class PlainMessageBuilder
     {
         return a( level ).toString();
     }
-    
+
     public String info( String level )
     {
         return a( level ).toString();
     }
-    
+
     public String warning( String level )
     {
         return a( level ).toString();
     }
-    
+
     public String error( String level )
     {
         return a( level ).toString();
@@ -71,7 +71,7 @@ class PlainMessageBuilder
     {
         return a( message );
     }
-    
+
     public PlainMessageBuilder failure( Object message )
     {
         return a( message );

Modified: maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/logging/package-info.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/logging/package-info.java?rev=1792172&r1=1792171&r2=1792172&view=diff
==============================================================================
--- maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/logging/package-info.java (original)
+++ maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/logging/package-info.java Fri Apr 21 09:55:10 2017
@@ -7,9 +7,9 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- *
+ *
  *  http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -19,7 +19,7 @@
  */
 /**
  * An API to write Maven messages to console with styled color content, consistently across whole
- * Maven ecosystem (Maven itself or any plugin or extension).
+ * Maven ecosystem (Maven itself or any plugin or extension).
  * <p>
  * Messages are built with instances of {@link org.apache.maven.shared.utils.logging.MessageBuilder MessageBuilder}
  * which provides a fluent API, while error level are colored by slf4j provider with
@@ -28,10 +28,10 @@
  * {@link org.apache.maven.shared.utils.logging.MessageUtils MessageUtils} gives access to these builders.
  * <p>
  * Plugins can use this API with any Maven version: color
- * just won't be activated when run with Maven version older than 3.4.0.
+ * just won't be activated when run with Maven version older than 3.5.0.
  * <p>
  * Styles are:<ul>
- * <li><code>debug</code>, <code>info</code>, <code>warning</code> and <code>error</code> for
+ * <li><code>debug</code>, <code>info</code>, <code>warning</code> and <code>error</code> for
  * {@link org.apache.maven.shared.utils.logging.LoggerLevelRenderer logger level rendering},</li>
  * <li><code>success</code>, <code>warning</code>, <code>failure</code>, <code>strong</code>, <code>mojo</code>
  * and <code>project</code> for {@link org.apache.maven.shared.utils.logging.MessageBuilder message content}</li>
@@ -40,7 +40,7 @@
  * environment variable (eventually in <code>.mavenrc</code> script):<ul>
  * <li>system properties are named <code>style.&lt;style name&gt;</code>,</li>
  * <li>values are comma separated combination of <code>bold</code>, <code>&lt;color&gt;</code> and
- * <code>bg&lt;color&gt;</code> (for background), where <code>&lt;color&gt;</code> is
+ * <code>bg&lt;color&gt;</code> (for background), where <code>&lt;color&gt;</code> is
  * an <a href="https://en.wikipedia.org/wiki/ANSI_escape_code#Colors">ANSI color</a>: <code>black</code>,
  * <code>red</code>, <code>green</code>, <code>yellow</code>, <code>blue</code>, <code>magenta</code>,
  * <code>cyan</code> or <code>white</code>, eventually with <code>bright</code> prefix</li>


Loading...