Re: [gradle-dev] Disable a task based on boolean in extension

2014-08-31 Thread Luke Daley
I’d use: myTask.onlyIf { myExtensnion.myTaskEnabled } On 30 August 2014 at 4:47:16 am, Lóránt Pintér (lorant.pin...@prezi.com) wrote: Hi, I have an extension that has a boolean parameter, something like this: myExtension {     myTaskEnabled false } My plugin creates a “myTask” which should be

Re: [gradle-dev] Disable a task based on boolean in extension

2014-08-29 Thread Rene Groeschke
Hey Lóránt, this is the gradle dev list. It's purpose is to discuss gradle development, but not gradle usage. would you mind raising this issue at forums.gradle.org cheers, René > Lóránt Pintér > 29 Aug 2014 20:47 > Hi, > > I have an extension that has a boolean

[gradle-dev] Disable a task based on boolean in extension

2014-08-29 Thread Lóránt Pintér
Hi, I have an extension that has a boolean parameter, something like this: myExtension {     myTaskEnabled false } My plugin creates a “myTask” which should be enabled/disabled based on “myTaskEnabled” in the extension. Is it okay to use convention mapping to map task.enabled to this value,