@Override public void resolve(FileCollectionResolveContext context) { File dir = getDir(); if (!buildDependency.getValues().isEmpty()) { context.add(buildDependency); } context.add(new DirectoryFileTree(dir, patternSet)); }
public void builtBy(Object... tasks) { buildDependencies.add(tasks); }
public ConfigurableFileTree setBuiltBy(Iterable<?> tasks) { buildDependency.setValues(tasks); return this; }
public Set<Object> getBuiltBy() { return buildDependency.getValues(); }
public ConfigurableFileTree builtBy(Object... tasks) { buildDependency.add(tasks); return this; }