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 2012/05/07 11:57:46 UTC

svn commit: r1334947 - /maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java

Author: olamy
Date: Mon May  7 09:57:46 2012
New Revision: 1334947

URL: http://svn.apache.org/viewvc?rev=1334947&view=rev
Log:
[MCOMPILER-170] add how to skip the warning in the warning message

Modified:
    maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java

Modified: maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java?rev=1334947&r1=1334946&r2=1334947&view=diff
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java (original)
+++ maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java Mon May  7 09:57:46 2012
@@ -544,8 +544,12 @@ public abstract class AbstractCompilerMo
             {
                 if ( !skipMultiThreadWarning )
                 {
-                    getLog().warn(
+                    StringBuilder sb = new StringBuilder(
                         "You are in a multi thread build and use reuseSame strategy this can issues on some os/jdk, consider using reuseCreated strategy" );
+                    sb.append( System.getProperty( "line.separator" ) );
+                    sb.append(
+                        "If you env is fine with that, you can skip this warning with the configuration field skipMultiThreadWarning or -Dmaven.compiler.skipMultiThreadWarning=true" );
+                    getLog().warn( sb.toString() );
                 }
             }
             compilerConfiguration.setCompilerReuseStrategy( CompilerConfiguration.CompilerReuseStrategy.ReuseSame );