did you make your task incremental ? it could happen that Gradle thinks convertToWebp has no updated input so it would not execute it. when you changed the name, this was a new task never executed so it naturally got picked up. do you see output like convertToWebp [UP-TO-DATE] ?
On Sun, Aug 9, 2015 at 7:52 PM Vaibhav Vishal <[email protected]> wrote: > I created a custom task with name - convertToWebp and set the dependency > of Android plug-in task "processResources" on this task. > But task "convertToWebp" was never executed. > > Surprisingly, when I changed the name to "pngToWebp" it worked perfectly > well. > The task executed successfully to completion. > > Is there any rules for naming a task or explanation for this behaviour ? > > Using plug-in version : 1.0.1 > Android Studio : 1.0.2 > Java : 1.7 > OS : Windows 7 > > -- > You received this message because you are subscribed to the Google Groups > "adt-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
