maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsive...@apache.org
Subject svn commit: r690519 - /maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java
Date Sat, 30 Aug 2008 15:00:30 GMT
Author: vsiveton
Date: Sat Aug 30 08:00:29 2008
New Revision: 690519

URL: http://svn.apache.org/viewvc?rev=690519&view=rev
Log:
o defined a static notdefined field

Modified:
    maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java

Modified: maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java?rev=690519&r1=690518&r2=690519&view=diff
==============================================================================
--- maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java
(original)
+++ maven/plugins/trunk/maven-help-plugin/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java
Sat Aug 30 08:00:29 2008
@@ -83,6 +83,9 @@
     /** For unknown values */
     private static final String UNKNOWN = "Unknown";
 
+    /** For not defined values */
+    private static final String NOT_DEFINED = "Not defined";
+
     /** For deprecated values */
     private static final String NO_REASON = "No reason given";
 
@@ -867,7 +870,7 @@
                         }
                         else
                         {
-                            descriptionBuffer.append( "NOT DEFINED" ).append( "\n" );
+                            descriptionBuffer.append( NOT_DEFINED ).append( "\n" );
                         }
                     }
                 }
@@ -887,7 +890,7 @@
                         }
                         else
                         {
-                            descriptionBuffer.append( "NOT DEFINED" ).append( "\n" );
+                            descriptionBuffer.append( NOT_DEFINED ).append( "\n" );
                         }
                     }
                 }
@@ -942,7 +945,7 @@
 
             if ( output == null )
             {
-                throw new MojoExecutionException( "No output was exist '." );
+                throw new MojoExecutionException( "No output was specified." );
             }
 
             return output;



Mime
View raw message