removed readonly and required attributes from component configuration, both in java 5 annotations or javadoc tags documentation, since they are ignored
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1339666 13f79535-47bb-0310-9956-ffa450edef68master
parent
5a16d68d60
commit
34400e4e3c
|
|
@ -49,16 +49,4 @@ public @interface Component
|
||||||
* @return the role-hint
|
* @return the role-hint
|
||||||
*/
|
*/
|
||||||
String roleHint() default "";
|
String roleHint() default "";
|
||||||
|
|
||||||
/**
|
|
||||||
* is the component required?
|
|
||||||
* @return <code>true</code> if the Mojo should fail when the component cannot be injected
|
|
||||||
*/
|
|
||||||
boolean required() default true;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ignored...
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
boolean readonly() default true;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -510,11 +510,11 @@ public class JavaAnnotationsMojoDescriptorExtractor
|
||||||
parameter.setName( componentAnnotationContent.getFieldName() );
|
parameter.setName( componentAnnotationContent.getFieldName() );
|
||||||
parameter.setRequirement(
|
parameter.setRequirement(
|
||||||
new Requirement( componentAnnotationContent.role(), componentAnnotationContent.roleHint() ) );
|
new Requirement( componentAnnotationContent.role(), componentAnnotationContent.roleHint() ) );
|
||||||
parameter.setEditable( false );
|
|
||||||
parameter.setDeprecated( componentAnnotationContent.getDeprecated() );
|
parameter.setDeprecated( componentAnnotationContent.getDeprecated() );
|
||||||
parameter.setSince( componentAnnotationContent.getSince() );
|
parameter.setSince( componentAnnotationContent.getSince() );
|
||||||
|
|
||||||
// same behaviour as JavaMojoDescriptorExtractor
|
// same behaviour as JavaMojoDescriptorExtractor
|
||||||
//parameter.setRequired( componentAnnotationContent.required() );
|
//parameter.setRequired( ... );
|
||||||
parameter.setEditable( false );
|
parameter.setEditable( false );
|
||||||
mojoDescriptor.addParameter( parameter );
|
mojoDescriptor.addParameter( parameter );
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -72,8 +72,6 @@ public class MyMojo
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @component role="..." roleHint="..."
|
* @component role="..." roleHint="..."
|
||||||
* @readonly
|
|
||||||
* @required
|
|
||||||
* @since <since-text>
|
* @since <since-text>
|
||||||
* @deprecated <deprecated-text>
|
* @deprecated <deprecated-text>
|
||||||
*/
|
*/
|
||||||
|
|
@ -93,4 +91,4 @@ public class MyMojo
|
||||||
|
|
||||||
* {{{/developers/mojo-api-specification.html#The_Descriptor_and_Annotations}Mojo API Specification}}
|
* {{{/developers/mojo-api-specification.html#The_Descriptor_and_Annotations}Mojo API Specification}}
|
||||||
|
|
||||||
* {{{/ref/current/maven-plugin-api/plugin.html}META-INF/maven/plugin.xml plugin descriptor}}
|
* {{{/ref/current/maven-plugin-api/plugin.html}<<<META-INF/maven/plugin.xml>>> plugin descriptor}}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue