On 15/09/2010, at 5:00 AM, Jeppe Nejsum Madsen wrote:

> On Tue, Sep 14, 2010 at 10:34 AM, Adam Murdoch <[email protected]> wrote:
>> 
>> On 14/09/2010, at 5:13 PM, Jeppe Nejsum Madsen wrote:
>> 
>> On Tue, Sep 14, 2010 at 7:59 AM, Adam Murdoch <[email protected]> wrote:
>> 
>> I think I have a fix for this.
>> 
>> Cool. Out of curiosity, what was/is the issue?
>> 
>> Passing optimise = off to the <scalac> task seemed to be causing the
>> problem. No idea why.
>> 
>> 
>> Could you try your build with a new snapshot
>> 
>> of Gradle? You can download a snapshot from our CI machine (log in as
> 
> Compiling with the snapshot works. It seems to be  a bug in Scala
> 2.8.0: http://permalink.gmane.org/gmane.comp.lang.scala.user/31161
> 
> I would like to use 0.9-RC1, so I've looked at the ScalaCompileOptions
> and see there's a possibility to specify the value of the optimise
> flag, but I can't seem to figure out how??
> 
> I've tried
> compileScala.options.optimize=true
> compileScala.optimize=true
> but this doesn't seem to have any effect??

try:

compileScala.scalaCompileOptions.optimize = true

Have a look at the groovydoc for the ScalaCompile class for more details about 
what you can configure: 
http://www.gradle.org/0.9-rc-1/docs/groovydoc/org/gradle/api/tasks/scala/ScalaCompile.html


--
Adam Murdoch
Gradle Developer
http://www.gradle.org
CTO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz

Reply via email to