Hi,

 in order to add some custom tasks for all both application and test 
variants I wanted to do

    def appTestVariants = applicationVariants
    appTestVariants.addAll(testVariants)
    appTestVariants.all { variant ->
        def suffix = variant.name.capitalize()

        task "doStuff${suffix}"(type: Exec) {
        }
    }

Interestingly, addAll() returns false, meaning all testVariants already are 
contained in the applicationVariants (containsAll() also returns true). How 
can this be, as the application and test variants have different names as I 
can see in the generated suffix?

Regards,
Sebastian


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