/**
* {@inheritDoc}
*/
public TaskDependency getTaskDependencyFromProjectDependency(final boolean useDependedOn, final String taskName) {
return new AbstractTaskDependency() {
public void resolve(TaskDependencyResolveContext context) {
if (useDependedOn) {
addTaskDependenciesFromProjectsIDependOn(taskName, context);
} else {
Project thisProject = context.getTask().getProject();