600kb of trash printed during build
-----------------------------------

                 Key: MANIMALSNIFFER-7
                 URL: http://jira.codehaus.org/browse/MANIMALSNIFFER-7
             Project: Mojo Animal Sniffer
          Issue Type: Bug
          Components: Maven Plugin
    Affects Versions: 1.5
         Environment: 
https://hudson.dev.java.net/source/browse/hudson/trunk/hudson/plugins/mercurial/
            Reporter: Jesse Glick
            Assignee: Stephen Connolly


Seems similar to MANIMALSNIFFER-5 but applies to animal-sniffer 1.5. When I 
build my Maven module, right after

{noformat}
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java15:1.0
{noformat}

I get a single line that runs to about 600Kb:

{noformat}
[INFO] [org.springframework.scripting.bsh.BshScriptUtils$1, ............, 
org.codehaus.groovy.runtime.dgm$252]
{noformat}

I'm not sure what it means but I certainly do not want to see it; it is more 
than long enough to cause some shells and log displayers to freeze.

I can confirm that the following patch (against 1.5) fixes the issue:

{noformat}
Index: 
src/main/java/org/codehaus/mojo/animal_sniffer/maven/CheckSignatureMojo.java
===================================================================
--- 
src/main/java/org/codehaus/mojo/animal_sniffer/maven/CheckSignatureMojo.java    
    (revision 12170)
+++ 
src/main/java/org/codehaus/mojo/animal_sniffer/maven/CheckSignatureMojo.java    
    (working copy)
@@ -146,7 +146,10 @@
                 }
             }
 
-            getLog().info(ignoredPackages.toString());
+            if ( getLog().isDebugEnabled() )
+            {
+                getLog().debug(ignoredPackages.toString());
+            }
 
             final SignatureChecker signatureChecker =
                 new SignatureChecker( new FileInputStream( a.getFile() ), 
ignoredPackages,
{noformat}


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to