Author: dennisl
Date: Wed Jul 16 11:55:05 2014
New Revision: 1610973

URL: http://svn.apache.org/r1610973
Log:
[MPLUGIN-266] Incorrect warning comment about deprecated @component usage for 
maven objects

Additional tweaks to the warning message

Modified:
    
maven/plugin-tools/trunk/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/annotations/JavaAnnotationsMojoDescriptorExtractor.java

Modified: 
maven/plugin-tools/trunk/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/annotations/JavaAnnotationsMojoDescriptorExtractor.java
URL: 
http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/annotations/JavaAnnotationsMojoDescriptorExtractor.java?rev=1610973&r1=1610972&r2=1610973&view=diff
==============================================================================
--- 
maven/plugin-tools/trunk/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/annotations/JavaAnnotationsMojoDescriptorExtractor.java
 (original)
+++ 
maven/plugin-tools/trunk/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/annotations/JavaAnnotationsMojoDescriptorExtractor.java
 Wed Jul 16 11:55:05 2014
@@ -580,9 +580,9 @@ public class JavaAnnotationsMojoDescript
                 else
                 {
                     // not a component but a Maven object to be transformed 
into an expression/property: deprecated
-                    getLogger().warn( "Deprecated @component for " + 
parameter.getName() + " field in " +
-                                          mojoAnnotatedClass.getClassName() + 
"." +
-                                          ": replace with @parameter 
default-value=\"" + expression + "\" @readonly" );
+                    getLogger().warn( "Deprecated @Component annotation for '" 
+ parameter.getName() + "' field in " +
+                                          mojoAnnotatedClass.getClassName() +
+                                          ": replace with @Parameter( 
default-value = \"" + expression + "\", readonly = true )" );
                     parameter.setDefaultValue( expression );
                     parameter.setType( 
componentAnnotationContent.getRoleClassName() );
                     parameter.setRequired( true );


Reply via email to