o Adding a missing part of Rod's last patch.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@239596 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Trygve Laugstol 2005-08-24 10:27:28 +00:00
parent df6414525d
commit 7c55d5cfb2
1 changed files with 10 additions and 1 deletions

View File

@ -110,6 +110,13 @@ public abstract class AbstractCompilerMojo
*/
private String compilerId;
/**
* Version of the compiler to use, ex. "1.3", "1.5"
*
* @parameter
*/
private String compilerVersion;
/**
* Runs the compiler in a separate process.
* <p/>
@ -248,6 +255,8 @@ public abstract class AbstractCompilerMojo
compilerConfiguration.setWorkingDirectory( basedir );
compilerConfiguration.setCompilerVersion( compilerVersion );
compilerConfiguration.setBuildDirectory( buildDirectory );
compilerConfiguration.setOutputFileName( outputFileName );
@ -265,7 +274,7 @@ public abstract class AbstractCompilerMojo
canUpdateTarget = compiler.canUpdateTarget( compilerConfiguration );
if ( compiler.getCompilerOutputStyle() == CompilerOutputStyle.ONE_OUTPUT_FILE_FOR_ALL_INPUT_FILES &&
!canUpdateTarget )
!canUpdateTarget )
{
getLog().info( "RESCANNING!" );
// TODO: This second scan for source files is sub-optimal