@Override
 public void resolve(FileCollectionResolveContext context) {
   File dir = getDir();
   if (!buildDependency.getValues().isEmpty()) {
     context.add(buildDependency);
   }
   context.add(new DirectoryFileTree(dir, patternSet));
 }
예제 #2
0
 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;
 }