Can I add actions to task at execution phase?


(Alexey Trenikhin) #1

Can one add actions to tasks during execution phase?


(dinio.dinev) #2

So you want dynamically to add actions to a task? Do you know about rules? They might help you www.gradle.org/docs/current/userguide/userguide_single.html#N10F58


(Alexey Trenikhin) #3

As far as I understand rules processed after project evaluated, but before first task is executed. I want ‘configure’ task modify behavior of ‘worker’ tasks.


(Peter Niederwieser) #4

There is nothing special about adding actions to tasks during the execution phase. It works the same way as adding actions to tasks during the configuration phase.