|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.gradle.api.internal.ConventionTask
org.gradle.api.tasks.bundling.AbstractArchiveTask
class AbstractArchiveTask extends ConventionTask
Property Summary | |
---|---|
protected ArchiveDetector |
archiveDetector
|
boolean |
createIfEmpty
Controls if an archive gets created if no files would go into it. |
Constructor Summary | |
AbstractArchiveTask()
|
Method Summary | |
---|---|
protected def
|
addFileSetInternal(java.util.Map args, java.lang.Class type, groovy.lang.Closure configureClosure)
|
AntDirective
|
antDirective(groovy.lang.Closure directive)
|
protected groovy.lang.Closure
|
createAntArchiveTask()
|
protected def
|
createFileSetInternal(java.util.Map args, java.lang.Class type, groovy.lang.Closure configureClosure)
|
FileSet
|
fileSet(groovy.lang.Closure configureClosure)
Adds a fileset. |
FileSet
|
fileSet(java.util.Map args = [:], groovy.lang.Closure configureClosure = null)
Add a fileset |
FileCollection
|
from(java.lang.Object srcPaths)
Adds an arbitrary collection of files to the archive. |
void
|
generateArchive()
|
FileTree
|
getAllSource()
|
java.lang.String
|
getAppendix()
|
java.lang.String
|
getArchiveName()
Returns the archive name. |
java.io.File
|
getArchivePath()
The path where the archive is constructed. |
java.io.File
|
getBaseDir()
|
java.lang.String
|
getBaseName()
|
java.lang.String
|
getClassifier()
|
java.lang.String
|
getCustomName()
|
java.io.File
|
getDestinationDir()
|
java.lang.String
|
getExtension()
|
java.util.List
|
getMergeFileSets()
|
java.util.List
|
getMergeGroupFileSets()
|
java.util.List
|
getResourceCollections()
|
java.lang.String
|
getVersion()
|
AbstractArchiveTask
|
merge(java.lang.Object[] archiveFiles)
|
AbstractArchiveTask
|
mergeGroup(def dir, groovy.lang.Closure configureClosure = null)
Defines a fileset of zip-like archives |
AbstractArchiveTask
|
resourceCollections(java.lang.Object elements)
|
void
|
setAppendix(java.lang.String appendix)
|
void
|
setBaseDir(java.io.File baseDir)
|
void
|
setBaseName(java.lang.String baseName)
|
void
|
setClassifier(java.lang.String classifier)
|
void
|
setCreateIfEmpty(boolean createIfEmpty)
|
void
|
setCustomName(java.lang.String customName)
|
void
|
setDestinationDir(java.io.File destinationDir)
|
void
|
setExtension(java.lang.String extension)
|
void
|
setMergeFileSets(java.util.List mergeFileSets)
|
void
|
setMergeGroupFileSets(java.util.List mergeGroupFileSets)
|
void
|
setResourceCollections(java.util.List resourceCollections)
|
void
|
setVersion(java.lang.String version)
|
Property Detail |
---|
protected ArchiveDetector archiveDetector
boolean createIfEmpty
Constructor Detail |
---|
AbstractArchiveTask()
Method Detail |
---|
protected def addFileSetInternal(java.util.Map args, java.lang.Class type, groovy.lang.Closure configureClosure)
public AntDirective antDirective(groovy.lang.Closure directive)
protected groovy.lang.Closure createAntArchiveTask()
protected def createFileSetInternal(java.util.Map args, java.lang.Class type, groovy.lang.Closure configureClosure)
public FileSet fileSet(groovy.lang.Closure configureClosure)
public FileSet fileSet(java.util.Map args = [:], groovy.lang.Closure configureClosure = null)
public FileCollection from(java.lang.Object srcPaths)
@TaskAction public void generateArchive()
@InputFiles public FileTree getAllSource()
public java.lang.String getAppendix()
public java.lang.String getArchiveName()
public java.io.File getArchivePath()
public java.io.File getBaseDir()
public java.lang.String getBaseName()
public java.lang.String getClassifier()
public java.lang.String getCustomName()
@OutputDirectory public java.io.File getDestinationDir()
public java.lang.String getExtension()
public java.util.List getMergeFileSets()
public java.util.List getMergeGroupFileSets()
public java.util.List getResourceCollections()
public java.lang.String getVersion()
public AbstractArchiveTask merge(java.lang.Object[] archiveFiles)
public AbstractArchiveTask mergeGroup(def dir, groovy.lang.Closure configureClosure = null)
public AbstractArchiveTask resourceCollections(java.lang.Object elements)
public void setAppendix(java.lang.String appendix)
public void setBaseDir(java.io.File baseDir)
public void setBaseName(java.lang.String baseName)
public void setClassifier(java.lang.String classifier)
public void setCreateIfEmpty(boolean createIfEmpty)
public void setCustomName(java.lang.String customName)
public void setDestinationDir(java.io.File destinationDir)
public void setExtension(java.lang.String extension)
public void setMergeFileSets(java.util.List mergeFileSets)
public void setMergeGroupFileSets(java.util.List mergeGroupFileSets)
public void setResourceCollections(java.util.List resourceCollections)
public void setVersion(java.lang.String version)
Groovy Documentation