make sure compiler warnings are output

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@321340 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-10-15 14:42:19 +00:00
parent f56c194b48
commit 3068a0259c
1 changed files with 14 additions and 4 deletions

View File

@ -60,6 +60,7 @@ public abstract class AbstractCompilerMojo
* The default value is true. * The default value is true.
* *
* @parameter expression="${maven.compiler.debug}" default-value="true" * @parameter expression="${maven.compiler.debug}" default-value="true"
* @deprecated
*/ */
private boolean debug; private boolean debug;
@ -390,6 +391,15 @@ public abstract class AbstractCompilerMojo
{ {
throw new CompilationFailureException( messages ); throw new CompilationFailureException( messages );
} }
else
{
for ( Iterator i = messages.iterator(); i.hasNext(); )
{
CompilerError message = (CompilerError) i.next();
getLog().warn( message.toString() );
}
}
} }
private Set computeStaleSources( CompilerConfiguration compilerConfiguration, Compiler compiler, private Set computeStaleSources( CompilerConfiguration compilerConfiguration, Compiler compiler,