Author: vsiveton
Date: Sat Nov 17 05:36:26 2007
New Revision: 595947
URL: http://svn.apache.org/viewvc?rev=595947&view=rev
Log:
MPLUGIN-62: Exclude read-only components from plugin goal documentation
Submitted by: Benjamin Bentmann
Reviewed by: Vincent Siveton
o patch applied
Modified:
maven/plugin-tools/trunk/maven-plugin-tools-java/src/main/java/org/apache/maven/tools/plugin/extractor/java/JavaMojoDescriptorExtractor.java
Modified:
maven/plugin-tools/trunk/maven-plugin-tools-java/src/main/java/org/apache/maven/tools/plugin/extractor/java/JavaMojoDescriptorExtractor.java
URL:
http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-tools-java/src/main/java/org/apache/maven/tools/plugin/extractor/java/JavaMojoDescriptorExtractor.java?rev=595947&r1=595946&r2=595947&view=diff
==============================================================================
---
maven/plugin-tools/trunk/maven-plugin-tools-java/src/main/java/org/apache/maven/tools/plugin/extractor/java/JavaMojoDescriptorExtractor.java
(original)
+++
maven/plugin-tools/trunk/maven-plugin-tools-java/src/main/java/org/apache/maven/tools/plugin/extractor/java/JavaMojoDescriptorExtractor.java
Sat Nov 17 05:36:26 2007
@@ -427,6 +427,11 @@
pd.setRequirement( new Requirement( role, roleHint ) );
pd.setName( (String) entry.getKey() );
+
+ pd.setEditable( false );
+ /* TODO: or better like this? Need @component fields be
editable for the user?
+ pd.setEditable( field.getTagByName( READONLY ) == null );
+ */
}
else
{