mirror of https://github.com/apache/maven.git
PR: MNG-595
Submitted by: Jesse McConnell Reviewed by: Brett Porter add support for -encoding flag to javac git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@220765 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bb79e8614d
commit
f37561b2e3
|
@ -59,6 +59,13 @@ public abstract class AbstractCompilerMojo
|
|||
* @parameter
|
||||
*/
|
||||
private String target;
|
||||
|
||||
/**
|
||||
* The -encoding argument for the Java compiler
|
||||
*
|
||||
* @parameter
|
||||
*/
|
||||
private String encoding;
|
||||
|
||||
/**
|
||||
* The granularity in milliseconds of the last modification
|
||||
|
@ -117,6 +124,11 @@ public abstract class AbstractCompilerMojo
|
|||
compilerConfiguration.addCompilerOption( "-target", target );
|
||||
}
|
||||
|
||||
if ( encoding != null )
|
||||
{
|
||||
compilerConfiguration.addCompilerOption( "-encoding" , encoding );
|
||||
}
|
||||
|
||||
compilerConfiguration.setDebug( debug );
|
||||
|
||||
List messages = null;
|
||||
|
|
|
@ -30,7 +30,6 @@ public class CompilationFailureException
|
|||
|
||||
sb.append( compilerError ).append( LS );
|
||||
}
|
||||
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue