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

@ -94,10 +94,12 @@ public void execute( PluginExecutionRequest request, PluginExecutionResponse res
/* Compile with debugging info */
String debugAsString = (String) request.getParameter( "debug" );
if (debugAsString != null)
if ( debugAsString != null )
{
if (Boolean.valueOf(debugAsString).booleanValue())
compilerConfiguration.addCompilerOption("-g", null);
if ( Boolean.valueOf( debugAsString ).booleanValue() )
{
compilerConfiguration.setDebug( true );
}
}
List messages = compiler.compile(compilerConfiguration);