public class DefaultSourceSetOutput extends CompositeFileCollection implements SourceSetOutput
FileCollection.AntType| Constructor and Description |
|---|
DefaultSourceSetOutput(String sourceSetDisplayName,
FileResolver fileResolver,
TaskResolver taskResolver) |
| Modifier and Type | Method and Description |
|---|---|
void |
builtBy(Object... taskPaths) |
void |
dir(Map<String,Object> options,
Object dir)
Registers an extra output dir and the builtBy information.
|
void |
dir(Object dir)
Registers an extra output dir.
|
File |
getClassesDir()
Returns the directory to assemble the compiled classes into.
|
FileCollection |
getDirs()
Returns all dirs registered with with #dir method.
|
String |
getDisplayName()
Returns the display name of this file collection.
|
File |
getResourcesDir()
Returns the output directory for resources
|
void |
resolve(FileCollectionResolveContext context)
Adds the contents of this container to the given context.
|
void |
setClassesDir(Object classesDir)
Sets the directory to assemble the compiled classes into.
|
void |
setResourcesDir(Object resourcesDir)
Sets the output directory for resources
|
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 DefaultSourceSetOutput(String sourceSetDisplayName, FileResolver fileResolver, TaskResolver taskResolver)
public void resolve(FileCollectionResolveContext context)
FileCollectionContainerresolve in interface FileCollectionContainerresolve in class CompositeFileCollectionpublic String getDisplayName()
AbstractFileCollectiongetDisplayName in interface FileCollectionContainergetDisplayName in interface MinimalFileCollectiongetDisplayName in class AbstractFileCollectionpublic File getClassesDir()
SourceSetOutput
See example at SourceSetOutput
getClassesDir in interface SourceSetOutputpublic void setClassesDir(Object classesDir)
SourceSetOutput
See example at SourceSetOutput
setClassesDir in interface SourceSetOutputclassesDir - the classes dir. Should not be null.public File getResourcesDir()
SourceSetOutput
See example at SourceSetOutput
getResourcesDir in interface SourceSetOutputpublic void setResourcesDir(Object resourcesDir)
SourceSetOutput
See example at SourceSetOutput
setResourcesDir in interface SourceSetOutputresourcesDir - the classes dir. Should not be null.public void builtBy(Object... taskPaths)
public void dir(Object dir)
SourceSetOutput
See example at SourceSetOutput
dir in interface SourceSetOutputdir - - will be resolved as Project.file(Object)public void dir(Map<String,Object> options, Object dir)
SourceSetOutput
See example at SourceSetOutput
dir in interface SourceSetOutputoptions - - use 'builtBy' key to configure the 'builtBy' task of the dirdir - - will be resolved as Project.file(Object)public FileCollection getDirs()
SourceSetOutputProject.file(Object)
See example at SourceSetOutput
getDirs in interface SourceSetOutputCopyright © 2013. All rights reserved