It looks like you are creating a task that is meant to run a separate Gradle call, per subproject. so each project is called with --continue, but the first call isn't.
--continue is used very specifically by task of type Test so that they do not throw an exception if a test fail in order to not stop the execution of Gradle. The GradleBuild task likely doesn't do that. I would find a different solution. For instance create a simple empty task, then figure out which projects you want to run (since it seems to be dynamic), and simply make you empty task depend on the project task using the "fully-qualified" task name (:mysubproject:connectedAndroidTest'). On Tue, Aug 19, 2014 at 4:17 AM, Andrii Bogachenko <[email protected]> wrote: > root build.gradle code > <code> > configure(getSubProjectList()) > { > task testApp(type: GradleBuild) { > buildFile = 'build.gradle' > tasks = ['connectedAndroidTest'] > startParameter.setContinueOnFailure(true) // this also passes > '--continue' explicitly but it is not helping anyway > } > } > > def getSubProjectList() { > if (properties.containsKey('app')){ > subprojects.findAll { > app.contains(it.name) > } > } else { > return [] > } > } > </code> > > -- > 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. > -- Xavier Ducrohet Android SDK Tech Lead Google Inc. http://developer.android.com | http://tools.android.com Please do not send me questions directly. Thanks! -- 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.
