Brett, you can also use the onlyIf closure in the task... I'm not sure what you use case is...
http://www.gradle.org/0.9-preview-1/docs/javadoc/org/gradle/api/Task.html#onlyIf(groovy.lang.Closure) Ken Sipe | [email protected] | blog: http://kensipe.blogspot.com On Apr 13, 2011, at 9:59 AM, Rene Groeschke wrote: > Hi Brett, > > if you have a task named jar, you can do jar.enabled = false in your build > script. > > regards, > René > > Am 13.04.11 16:50, schrieb Brett Cave: >> I came across some documentation from gradle 0.7 that discusses skipping a >> task by setting a skip.taskname property. This does not seem to work in the >> 1.0 milestones. >> >> Is there a way to configure gradle to skip a task (from within a build >> script) in the same way that -x taskname works as a parameter? >> >> > > > -- > ----------------------- > regards René > > rene groeschke > http://www.breskeby.com > @breskeby > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
