maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1648262 - /maven/plugin-tools/trunk/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/scanner/DefaultMojoScanner.java
Date Sun, 28 Dec 2014 22:16:31 GMT
Author: hboutemy
Date: Sun Dec 28 22:16:31 2014
New Revision: 1648262

URL: http://svn.apache.org/r1648262
Log:
changed INFO message: extractors ids are not really languages

Modified:
    maven/plugin-tools/trunk/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/scanner/DefaultMojoScanner.java

Modified: maven/plugin-tools/trunk/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/scanner/DefaultMojoScanner.java
URL: http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/scanner/DefaultMojoScanner.java?rev=1648262&r1=1648261&r2=1648262&view=diff
==============================================================================
--- maven/plugin-tools/trunk/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/scanner/DefaultMojoScanner.java
(original)
+++ maven/plugin-tools/trunk/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/scanner/DefaultMojoScanner.java
Sun Dec 28 22:16:31 2014
@@ -82,20 +82,20 @@ public class DefaultMojoScanner
 
         int numMojoDescriptors = 0;
 
-        for ( String language : activeExtractorsInternal )
+        for ( String extractorId : activeExtractorsInternal )
         {
-            MojoDescriptorExtractor extractor = mojoDescriptorExtractors.get( language );
+            MojoDescriptorExtractor extractor = mojoDescriptorExtractors.get( extractorId
);
 
             if ( extractor == null )
             {
-                throw new ExtractionException( "No mojo extractor for language: " + language
);
+                throw new ExtractionException( "No mojo extractor with id: " + extractorId
);
             }
 
-            logger.info( "Applying mojo extractor for language: " + language );
+            logger.info( "Applying mojo extractor with id: " + extractorId );
 
             List<MojoDescriptor> extractorDescriptors = extractor.execute( request
);
 
-            logger.info( "Mojo extractor for language: " + language + " found " + extractorDescriptors.size()
+            logger.info( "Mojo extractor with id: " + extractorId + " found " + extractorDescriptors.size()
                              + " mojo descriptors." );
             numMojoDescriptors += extractorDescriptors.size();
 



Mime
View raw message