On 5/01/10 7:01 AM, Robert Fischer wrote:
Is there some way I can tell Gradle to enable -Xlint:all and -g for all javac runs?
One way is to use a rule for when a Compile task is added. For example, in your root project build script:
allprojects {
tasks.withType(Compile).allTasks { Compile compile ->
compile.options.debug = true
compile.options.compilerArgs = ['-Xlint:all']
}
}
--
Adam Murdoch
Gradle Developer
http://www.gradle.org
