maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Bentmann <benjamin.bentm...@udo.edu>
Subject Re: svn commit: r825432 - in /maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin: eclipse/writers/EclipseSettingsWriter.java ide/IdeUtils.java
Date Thu, 15 Oct 2009 09:25:41 GMT
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message