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 enabled/disabled based on “myTaskEnabled” in the extension. Is it okay to use convention mapping to map task.enabled to this value, or should I do this differently? Thanks — Lóránt