On 06/01/2011, at 5:01 AM, Dave King wrote:

> The eclipse plugin generates an output folder for eclipse projects
> that points to the same build location as gradle uses.  I'm not a fan
> of mixing classes from Javac and the eclipse compiler, in part because
> the eclipse compiler will compile just about anything and create a
> runtime exception instead.

I think we should make this the default, for both the eclipse and idea plugins.

>  How can I override the output location for
> an eclipse project?

You can do something like:

import org.gradle.plugins.eclipse.model.SourceFolder

eclipseClasspath {
    whenConfigured { classpath ->
        classpath.entries.findAll { it instanceof SourceFolder }.each { folder 
->
            folder.output = 'eclipseBin'
        }
    }
}


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

Reply via email to