Do you create one instance of you task per variant? If not, it will run 
only once.

Michal

On Sunday, August 23, 2015 at 7:59:46 PM UTC+1, Vaibhav Vishal wrote:
>
> Here is what I am trying to do - 
> I have a task which should run before android's 
> `process<flavorName><buildType>Resources` task for which dependency is set 
> as below :
>
> myTask >> {
> // use the output of mergeResources task and do something with it before 
> execution of process task
> }
>
> tasks.whenTaskAdded { task ->
>   //if task name matches `process<flavorName><buildType>Resources`
> task.dependsOn myTask
> }
>
> This works well in case I have only one flavor. But in case of more than 
> one flavor, this happens only for the last flavor which is added.
>
> I want myTask to execute for all the flavors. How can I achieve this ?
>  
>

-- 
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.

Reply via email to