maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r479434 - /maven/shared/trunk/maven-plugin-tools/maven-plugin-tools-java/src/main/java/org/apache/maven/tools/plugin/extractor/java/JavaMojoDescriptorExtractor.java
Date Sun, 26 Nov 2006 22:33:21 GMT
Author: brett
Date: Sun Nov 26 14:33:20 2006
New Revision: 479434

URL: http://svn.apache.org/viewvc?view=rev&rev=479434
Log:
support role-hint as an alternate syntax to roleHint

Modified:
    maven/shared/trunk/maven-plugin-tools/maven-plugin-tools-java/src/main/java/org/apache/maven/tools/plugin/extractor/java/JavaMojoDescriptorExtractor.java

Modified: maven/shared/trunk/maven-plugin-tools/maven-plugin-tools-java/src/main/java/org/apache/maven/tools/plugin/extractor/java/JavaMojoDescriptorExtractor.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-plugin-tools/maven-plugin-tools-java/src/main/java/org/apache/maven/tools/plugin/extractor/java/JavaMojoDescriptorExtractor.java?view=diff&rev=479434&r1=479433&r2=479434
==============================================================================
--- maven/shared/trunk/maven-plugin-tools/maven-plugin-tools-java/src/main/java/org/apache/maven/tools/plugin/extractor/java/JavaMojoDescriptorExtractor.java
(original)
+++ maven/shared/trunk/maven-plugin-tools/maven-plugin-tools-java/src/main/java/org/apache/maven/tools/plugin/extractor/java/JavaMojoDescriptorExtractor.java
Sun Nov 26 14:33:20 2006
@@ -417,6 +417,12 @@
 
                 String roleHint = componentTag.getNamedParameter( COMPONENT_ROLEHINT );
 
+                if ( roleHint == null )
+                {
+                    // support alternate syntax for better compatibility with the Plexus
CDC.
+                    roleHint = componentTag.getNamedParameter( "role-hint" );
+                }
+
                 pd.setRequirement( new Requirement( role, roleHint ) );
 
                 pd.setName( (String) entry.getKey() );



Mime
View raw message