Would the syntax:

[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'

also work, and be a bit easier to follow (for me, at least)?


On Mon, Aug 16, 2010 at 8:13 AM, Luke Taylor
<[email protected]>wrote:

> 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
>>
>>
>>
-- 
John Murph
Automated Logic Research Team

Reply via email to