Hi Nicolas,
Author: nicolas
Date: Thu Oct 15 08:25:55 2009
New Revision: 825432
URL: http://svn.apache.org/viewvc?rev=825432&view=rev
Log:
[MECLIPSE-156] Plugin should support setting file encoding
o read maven-compiler-plugin configuration for encoding and generate related
.settings configuration for project sources, testSources, resources &
testResources
[...]
/**
+ * Returns the source encoding configured for the compiler plugin. Returns
the minimum version required to compile
+ * both standard and test sources, if settings are different.
+ *
+ * @param project maven project
+ * @return java source version
+ */
+ public static String getCompilerSourceEncoding( MavenProject project )
+ {
+ return IdeUtils.getCompilerPluginSetting( project, PROPERTY_ENCODING );
+ }
Will this also work properly if the source file encoding is not directly
configured in the <configuration> section of the Compiler Plugin but
given by the property "project.build.sourceEncoding" as described in [0]?
Benjamin
[0]
http://docs.codehaus.org/display/MAVENUSER/POM+Element+for+Source+File+Encoding
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]