public class DefaultFileCollectionResolveContext extends Object implements ResolvableFileCollectionResolveContext
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
DefaultFileCollectionResolveContext.Converter<T> |
| Modifier | Constructor and Description |
|---|---|
|
DefaultFileCollectionResolveContext() |
|
DefaultFileCollectionResolveContext(FileResolver fileResolver) |
protected |
DefaultFileCollectionResolveContext(FileResolver fileResolver,
DefaultFileCollectionResolveContext.Converter<? extends FileCollection> fileCollectionConverter,
DefaultFileCollectionResolveContext.Converter<? extends FileTree> fileTreeConverter) |
| Modifier and Type | Method and Description |
|---|---|
DefaultFileCollectionResolveContext |
add(Object element)
Adds the given element to be resolved.
|
ResolvableFileCollectionResolveContext |
newContext()
Creates a new context which can be used to resolve element.
|
DefaultFileCollectionResolveContext |
push(FileResolver fileResolver)
Adds a nested context which resolves elements using the given resolver.
|
List<FileCollection> |
resolveAsFileCollections()
Resolves the contents of this context as a list of atomic
FileCollection instances. |
List<FileTree> |
resolveAsFileTrees()
Resolves the contents of this context as a list of atomic
FileTree instances. |
List<MinimalFileCollection> |
resolveAsMinimalFileCollections()
Resolves the contents of this context as a list of atomic
MinimalFileCollection instances. |
public DefaultFileCollectionResolveContext()
public DefaultFileCollectionResolveContext(FileResolver fileResolver)
protected DefaultFileCollectionResolveContext(FileResolver fileResolver, DefaultFileCollectionResolveContext.Converter<? extends FileCollection> fileCollectionConverter, DefaultFileCollectionResolveContext.Converter<? extends FileTree> fileTreeConverter)
public DefaultFileCollectionResolveContext add(Object element)
FileCollectionResolveContextIterable - elements are recursively resolved.
Closure - return value is recursively resolved, if not null.
Callable - return value is recursively resolved, if not null.
FileCollection - resolved as is.
Task - resolved to task.outputs.files
MinimalFileSet - wrapped as a FileCollection.
MinimalFileTree - wrapped as a FileTree.
FileCollectionContainer - recursively resolved.
TaskDependency - resolved to an empty FileCollection which is builtBy the given dependency.
FileCollection.
FileCollection which contains the union of all files and dependencies add to this context.add in interface FileCollectionResolveContextelement - The element to add.public DefaultFileCollectionResolveContext push(FileResolver fileResolver)
FileCollectionResolveContextpush in interface FileCollectionResolveContextpublic ResolvableFileCollectionResolveContext newContext()
FileCollectionResolveContextResolvableFileCollectionResolveContext.resolveAsFileCollections() or ResolvableFileCollectionResolveContext.resolveAsFileTrees().newContext in interface FileCollectionResolveContextpublic List<FileTree> resolveAsFileTrees()
FileTree instances.resolveAsFileTrees in interface ResolvableFileCollectionResolveContextpublic List<FileCollection> resolveAsFileCollections()
FileCollection instances.resolveAsFileCollections in interface ResolvableFileCollectionResolveContextpublic List<MinimalFileCollection> resolveAsMinimalFileCollections()
MinimalFileCollection instances.Copyright © 2013. All rights reserved