PR: MNG-970

Submitted by: Edwin Punzalan
add optimize option


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@321313 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-10-15 08:15:33 +00:00
parent 8a35d8801e
commit 51b9ce75e5
1 changed files with 9 additions and 0 deletions

View File

@ -76,6 +76,13 @@ public abstract class AbstractCompilerMojo
*/
private boolean showDeprecation;
/**
* Optimize compiled code using the compiler's optimization methods
*
* @parameter default-value="false"
*/
private boolean optimize;
/**
* Output warnings
*
@ -252,6 +259,8 @@ public abstract class AbstractCompilerMojo
compilerConfiguration.setClasspathEntries( getClasspathElements() );
compilerConfiguration.setSourceLocations( compileSourceRoots );
compilerConfiguration.setOptimize( optimize );
compilerConfiguration.setDebug( debug );