use of org.gradle.api.internal.file.collections.FileCollectionResolveContext in project gradle by gradle.
the class CompositeFileCollection method getAsFileTree.
@Override
public FileTree getAsFileTree() {
return new CompositeFileTree() {
@Override
public void visitContents(FileCollectionResolveContext context) {
ResolvableFileCollectionResolveContext nested = context.newContext();
CompositeFileCollection.this.visitContents(nested);
context.add(nested.resolveAsFileTrees());
}
@Override
public void visitDependencies(TaskDependencyResolveContext context) {
CompositeFileCollection.this.visitDependencies(context);
}
@Override
public String getDisplayName() {
return CompositeFileCollection.this.getDisplayName();
}
};
}
use of org.gradle.api.internal.file.collections.FileCollectionResolveContext in project gradle by gradle.
the class AbstractFileCollection method getAsFileTree.
public FileTree getAsFileTree() {
return new CompositeFileTree() {
@Override
public void visitContents(FileCollectionResolveContext context) {
ResolvableFileCollectionResolveContext nested = context.newContext();
nested.add(AbstractFileCollection.this);
context.add(nested.resolveAsFileTrees());
}
@Override
public void visitDependencies(TaskDependencyResolveContext context) {
context.add(AbstractFileCollection.this);
}
@Override
public String getDisplayName() {
return AbstractFileCollection.this.getDisplayName();
}
};
}
Aggregations