mirror of https://github.com/apache/maven.git
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:
parent
8a35d8801e
commit
51b9ce75e5
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue