public class DefaultConfigurableFileCollection extends CompositeFileCollection implements ConfigurableFileCollection
FileCollection which resolves a set of paths relative to a FileResolver.FileCollection.AntType| Constructor and Description |
|---|
DefaultConfigurableFileCollection(FileResolver fileResolver,
TaskResolver taskResolver,
Object... files) |
DefaultConfigurableFileCollection(String displayName,
FileResolver fileResolver,
TaskResolver taskResolver,
Object... files) |
| Modifier and Type | Method and Description |
|---|---|
ConfigurableFileCollection |
builtBy(Object... tasks)
Registers some tasks which build the files of this collection.
|
ConfigurableFileCollection |
from(Object... paths)
Adds a set of source paths to this collection.
|
Set<Object> |
getBuiltBy()
Returns the set of tasks which build the files of this collection.
|
String |
getDisplayName()
Returns the display name of this file collection.
|
Set<Object> |
getFrom()
Returns the set of source paths for this collection.
|
void |
resolve(FileCollectionResolveContext context)
Adds the contents of this container to the given context.
|
ConfigurableFileCollection |
setBuiltBy(Iterable<?> tasks)
Sets the tasks which build the files of this collection.
|
void |
setFrom(Iterable<?> path)
Sets the source paths for this collection.
|
void |
setFrom(Object... paths)
Sets the source paths for this collection.
|
addAsResourceCollection, addDependencies, contains, filter, getAsFileTree, getAsFileTrees, getBuildDependencies, getFiles, getSourceCollections, isEmptyadd, addAsFileSet, addAsMatchingTask, addToAntBuilder, addToAntBuilder, asType, filter, getAsPath, getCapDisplayName, getSingleFile, iterator, minus, plus, stopExecutionIfEmpty, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, addToAntBuilder, addToAntBuilder, asType, contains, filter, filter, getAsFileTree, getAsPath, getFiles, getSingleFile, isEmpty, minus, plus, stopExecutionIfEmptygetBuildDependenciespublic DefaultConfigurableFileCollection(FileResolver fileResolver, TaskResolver taskResolver, Object... files)
public DefaultConfigurableFileCollection(String displayName, FileResolver fileResolver, TaskResolver taskResolver, Object... files)
public String getDisplayName()
AbstractFileCollectiongetDisplayName in interface FileCollectionContainergetDisplayName in interface MinimalFileCollectiongetDisplayName in class AbstractFileCollectionpublic Set<Object> getFrom()
ConfigurableFileCollectionProject.files(Object...).getFrom in interface ConfigurableFileCollectionpublic void setFrom(Iterable<?> path)
ConfigurableFileCollectionProject.files(Object...).setFrom in interface ConfigurableFileCollectionpath - The paths.public void setFrom(Object... paths)
ConfigurableFileCollectionProject.files(Object...).setFrom in interface ConfigurableFileCollectionpaths - The paths.public ConfigurableFileCollection from(Object... paths)
ConfigurableFileCollectionProject.files(Object...).from in interface ConfigurableFileCollectionpaths - The files to add.public ConfigurableFileCollection builtBy(Object... tasks)
ConfigurableFileCollectionbuiltBy in interface ConfigurableFileCollectiontasks - The tasks. These are evaluated as for Task.dependsOn(Object...).public Set<Object> getBuiltBy()
ConfigurableFileCollectiongetBuiltBy in interface ConfigurableFileCollectionpublic ConfigurableFileCollection setBuiltBy(Iterable<?> tasks)
ConfigurableFileCollectionsetBuiltBy in interface ConfigurableFileCollectiontasks - The tasks. These are evaluated as for Task.dependsOn(Object...).public void resolve(FileCollectionResolveContext context)
FileCollectionContainerresolve in interface FileCollectionContainerresolve in class CompositeFileCollectionCopyright © 2013. All rights reserved