mirror of
https://github.com/apache/maven.git
synced 2025-02-23 02:15:50 +00:00
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:
parent
763811d0fa
commit
b7c04baca4
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user