Each Compile task has a CompileOptions associated with it which includes an 'encoding' property. So I think something like

[compileJava, compileTestJava]*.options.collect {options -> options.encoding = 'UTF-8'}

should work.

Luke.

On 16/08/2010 08:38, Matthias Bohlen wrote:
Hi,

all my Java source files are encoded as UTF-8. How do I tell gradle to
tell the Java compiler to use that encoding? Otherwise, I get strange
characters on the screen when the compiled programs starts.

Cheers
Matthias


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

     http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to