On Apr 12, 2013 3:17 AM, "Luke Daley" <luke.da...@gradleware.com> wrote:
>
>
> On 11/04/2013, at 12:53 PM, Hans Dockter <hans.dock...@gradleware.com>
wrote:
>
> >
> >
> > On Thu, Apr 11, 2013 at 12:38 PM, Luke Daley <luke.da...@gradleware.com>
wrote:
> >
> > On 11/04/2013, at 7:01 AM, Hans Dockter <hans.dock...@gradleware.com>
wrote:
> >
> > > Just read in the userguide the new section on Task Ordering:
http://www.gradle.org/docs/nightly/userguide/more_about_tasks.html#sec:ordering_tasks
> > >
> > > We describe as a use case for mustRunAfter:
> > >
> > > Specify that unit tests should always run before integration tests
for faster feedback, but still allow integration tests to be run without
unit tests.
> > >
> > > This is a use case for a future shouldRunAfter relationship. Using
mustRunAfter here can lead to trouble as it can easily introduce a cyclic
violation for no good reason.
> >
> > Can you elaborate on this please.
> >
> > Let's say you have a corporate plugin with a mustRunAfter relationship:
generateDoc mustRunAfter integrationTest as you want to have the
integrationTest before the long running doc generation. Now one project
need to run integrationTest as it needs to integrate the doc output into
the tests. With a shouldRunAfter relationship this won't be a problem, with
mustRunAfter it will break the build. I think you can come up with many
examples like this.
>
> Right, thanks.
>
> So are we going to change the documentation before 1.6 is released?

I'll get onto this before i go on holidays.
>
>
> > Hans
> >
> >
> > > We should point this out in the user's guide that mustRunAfter is a
(often very good) work around for this use case but not the final solution.
> > >
> > > What is the plan for introducing shouldRunAfter? Although I agree
that the mustRunAfter is more important than shouldRunAfter. But I don't
think that shouldRunAfter isan exotic use case. There are many feedback
accelleration scenarios where you want to have that. Obviously the Ant
import would be another grateful consumer.
> > >
> > > I'm very excited about the task ordering functionality.
> > >
> > > Hans
> > >
> > > --
> > > Hans Dockter
> > > Founder, Gradle
> > > http://www.gradle.org, http://twitter.com/gradleware
> > > CEO, Gradleware - Gradle Training, Support, Consulting
> > > http://www.gradleware.com
> > >
> > > Join us at the Gradle Summit 2013, June 13th and 14th in Santa Clara,
CA: http://www.gradlesummit.com
> > >
> >
> > --
> > Luke Daley
> > Principal Engineer, Gradleware
> > http://gradleware.com
> >
> > Join me at the Gradle Summit 2013, June 13th and 14th in Santa Clara,
CA: http://www.gradlesummit.com
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list, please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
> >
> >
>
> --
> Luke Daley
> Principal Engineer, Gradleware
> http://gradleware.com
>
> Join me at the Gradle Summit 2013, June 13th and 14th in Santa Clara, CA:
http://www.gradlesummit.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>

Reply via email to