Added debug option to compiler configuration

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163302 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Carlos Sanchez Gonzalez 2005-01-09 22:38:57 +00:00
parent 763811d0fa
commit b7c04baca4
1 changed files with 5 additions and 3 deletions

View File

@ -97,7 +97,9 @@ public class CompilerMojo
if ( debugAsString != null )
{
if ( Boolean.valueOf( debugAsString ).booleanValue() )
compilerConfiguration.addCompilerOption("-g", null);
{
compilerConfiguration.setDebug( true );
}
}
List messages = compiler.compile(compilerConfiguration);