Frank Wilson wrote:
>
> How would I configure gradle to pass the -Xlint:unchecked option to javac?
>
tasks.withType(Compile) {
options.compilerArgs << "-Xlint:unchecked"
}
Frank Wilson wrote:
>
> Ideally I'd like some ad-hoc property that I could pass on the command
> line.
>
Wrap the above with:
if (hasProperty("xlint")) { ... }
And call Gradle like so:
gradle build -Pxlint
--
Peter Niederwieser
Developer, Gradle
http://www.gradle.org
Trainer & Consultant, Gradleware
http://www.gradleware.com
Creator, Spock Framework
http://spockframework.org
--
View this message in context:
http://gradle.1045684.n5.nabble.com/getting-compiler-warnings-out-of-javac-with-gradle-tp4229141p4231647.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email