You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Mitch Gitman <mg...@gmail.com> on 2009/04/04 05:29:19 UTC
redundant dependencies--executing targets from a task
I have a custom Ant task that is invoking Ant targets like so:
theProject.getExecutor().executeTargets(theProject, new String[] {
targetName });
I want the dependencies of the invoked target to be invoked themselves, so I
don't need to specially use an *Executor *like *IgnoreDependenciesExecutor*.
But, by the same token, I *don't *want the target's dependencies to be
invoked if they've already been invoked in the course of the build that
eventually ran that custom Ant task.
So how do I get this *Executor*'s *executeTargets *to know about, and avoid,
the targets that have already been invoked up to that point?