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:
Brett Leslie Porter 2005-07-22 15:57:10 +00:00
parent bb79e8614d
commit f37561b2e3
2 changed files with 12 additions and 1 deletions

View File

@ -60,6 +60,13 @@ public abstract class AbstractCompilerMojo
*/
private String target;
/**
* The -encoding argument for the Java compiler
*
* @parameter
*/
private String encoding;
/**
* The granularity in milliseconds of the last modification
* date for testing whether a source needs recompilation
@ -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;

View File

@ -30,7 +30,6 @@ public class CompilationFailureException
sb.append( compilerError ).append( LS );
}
return sb.toString();
}
}