public class ProjectDefaultsBuildExecuter extends DelegatingBuildExecuter {
<BUG>private List<String> defaultTasks;
public void select(GradleInternal gradle) {</BUG>
if (getDelegate() == null) {
ProjectInternal project = gradle.getDefaultProject();
<BUG>defaultTasks = project.getDefaultTasks();
if (defaultTasks.size() == 0) {
throw new TaskSelectionException(String.format(
"No tasks have been specified and %s has not defined any default tasks.", project));
}</BUG>
setDelegate(new TaskNameResolvingBuildExecuter(defaultTasks));

public class ProjectDefaultsBuildExecuter extends DelegatingBuildExecuter {
private List<String> defaultTasks;
private String displayName;
public void select(GradleInternal gradle) {
if (getDelegate() == null) {
ProjectInternal project = gradle.getDefaultProject();
defaultTasks = project.getDefaultTasks();
displayName = String.format("project default tasks %s", GUtil.toString(defaultTasks));
if (defaultTasks.size() == 0) {
defaultTasks = Arrays.asList(ImplicitTasksConfigurer.HELP_TASK);
displayName = String.format("default task %s", GUtil.toString(defaultTasks));
}
