You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2009/11/19 23:03:55 UTC

svn commit: r882318 - /maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/DefaultCheckstyleExecutor.java

Author: olamy
Date: Thu Nov 19 22:03:54 2009
New Revision: 882318

URL: http://svn.apache.org/viewvc?rev=882318&view=rev
Log:
quiet logging (info -> debug)

Modified:
    maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/DefaultCheckstyleExecutor.java

Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/DefaultCheckstyleExecutor.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/DefaultCheckstyleExecutor.java?rev=882318&r1=882317&r2=882318&view=diff
==============================================================================
--- maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/DefaultCheckstyleExecutor.java (original)
+++ maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/DefaultCheckstyleExecutor.java Thu Nov 19 22:03:54 2009
@@ -78,8 +78,10 @@
         ClassLoader checkstyleClassLoader = PackageNamesLoader.class.getClassLoader();
         Thread.currentThread().setContextClassLoader( checkstyleClassLoader );
 
-        
-        getLogger().info( "executeCheckstyle start headerLocation : " + request.getHeaderLocation() );
+        if ( getLogger().isDebugEnabled() )
+        {
+            getLogger().debug( "executeCheckstyle start headerLocation : " + request.getHeaderLocation() );
+        }
         locator.setOutputDirectory( new File( request.getProject().getBuild().getDirectory() ) );
         File[] files;
         try
@@ -291,7 +293,11 @@
         {
             if ( request.getPropertiesLocation() != null )
             {
-                getLogger().info( "request.getPropertiesLocation() " + request.getPropertiesLocation() );
+                if ( getLogger().isDebugEnabled() )
+                {
+                    getLogger().debug( "request.getPropertiesLocation() " + request.getPropertiesLocation() );
+                }                
+                
                 File propertiesFile = locator.getResourceAsFile( request.getPropertiesLocation(),
                                                                  "checkstyle-checker.properties" );
 
@@ -321,7 +327,11 @@
                     headerLocation = "config/maven-header.txt";
                 }
             }
-            getLogger().info( "headerLocation " + headerLocation );
+            if ( getLogger().isDebugEnabled() )
+            {
+                getLogger().debug( "headerLocation " + headerLocation );
+            } 
+            
             if ( StringUtils.isNotEmpty( headerLocation ) )
             {
                 try
@@ -437,7 +447,11 @@
     {
         try
         {
-            getLogger().info( "request.getConfigLocation() " + request.getConfigLocation() );
+            if ( getLogger().isDebugEnabled() )
+            {
+                getLogger().debug( "request.getConfigLocation() " + request.getConfigLocation() );
+            }
+           
             File configFile = locator.getResourceAsFile( request.getConfigLocation(), "checkstyle-checker.xml" );
 
             if ( configFile == null )