public abstract class AbstractArchiveTask extends AbstractCopyTask
AbstractArchiveTask is the base class for all archive tasks.Task.NamerTASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE| Constructor and Description |
|---|
AbstractArchiveTask() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAppendix()
Returns the appendix part of the archive name, if any.
|
String |
getArchiveName()
Returns the archive name.
|
File |
getArchivePath()
The path where the archive is constructed.
|
String |
getBaseName()
Returns the base name of the archive.
|
String |
getClassifier()
Returns the classifier part of the archive name, if any.
|
File |
getDestinationDir()
Returns the directory where the archive is generated into.
|
String |
getExtension()
Returns the extension part of the archive name.
|
String |
getVersion()
Returns the version part of the archive name, if any.
|
AbstractArchiveTask |
into(Object destPath)
Specifies the destination directory *inside* the archive for the files.
|
CopySpec |
into(Object destPath,
Action<? super CopySpec> copySpec)
Creates and configures a child
CopySpec with a destination directory *inside* the archive for the files. |
AbstractArchiveTask |
into(Object destPath,
Closure configureClosure)
Creates and configures a child
CopySpec with a destination directory *inside* the archive for the files. |
void |
setAppendix(String appendix) |
void |
setArchiveName(String name)
Sets the archive name.
|
void |
setBaseName(String baseName) |
void |
setClassifier(String classifier) |
void |
setDestinationDir(File destinationDir) |
void |
setExtension(String extension) |
void |
setVersion(String version) |
copy, createCopyAction, createRootSpec, eachFile, eachFile, exclude, exclude, exclude, exclude, expand, filesMatching, filesMatching, filesNotMatching, filesNotMatching, filter, filter, filter, filter, from, from, from, getDirMode, getDuplicatesStrategy, getExcludes, getFileLookup, getFileMode, getFileResolver, getFileSystem, getFilteringCharset, getIncludeEmptyDirs, getIncludes, getInstantiator, getMainSpec, getRootSpec, getSource, include, include, include, include, isCaseSensitive, rename, rename, rename, rename, setCaseSensitive, setDirMode, setDuplicatesStrategy, setExcludes, setFileMode, setFilteringCharset, setIncludeEmptyDirs, setIncludes, withconventionMapping, conventionMapping, getConventionMappingaddValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, finalizedBy, getActionClassLoaders, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString@Internal(value="Represented as part of archivePath") public String getArchiveName()
[baseName]-[appendix]-[version]-[classifier].[extension]public void setArchiveName(String name)
name - the archive name.@OutputFile public File getArchivePath()
destinationDir plus the archiveName.@Internal(value="Represented as part of archivePath") public File getDestinationDir()
public void setDestinationDir(File destinationDir)
@Internal(value="Represented as part of archiveName") public String getBaseName()
public void setBaseName(String baseName)
@Internal(value="Represented as part of archiveName") public String getAppendix()
public void setAppendix(String appendix)
@Internal(value="Represented as part of archiveName") public String getVersion()
public void setVersion(String version)
@Internal(value="Represented as part of archiveName") public String getExtension()
public void setExtension(String extension)
@Internal(value="Represented as part of archiveName") public String getClassifier()
public void setClassifier(String classifier)
public AbstractArchiveTask into(Object destPath)
Project.file(Object).
Don't mix it up with getDestinationDir() which specifies the output directory for the archive.into in interface CopyProcessingSpecinto in interface CopySpecinto in class AbstractCopyTaskdestPath - destination directory *inside* the archive for the filespublic AbstractArchiveTask into(Object destPath, Closure configureClosure)
CopySpec with a destination directory *inside* the archive for the files.
The destination is evaluated as per Project.file(Object).
Don't mix it up with getDestinationDir() which specifies the output directory for the archive.into in interface CopySpecinto in class AbstractCopyTaskdestPath - destination directory *inside* the archive for the filesconfigureClosure - The closure to use to configure the child CopySpec.public CopySpec into(Object destPath, Action<? super CopySpec> copySpec)
CopySpec with a destination directory *inside* the archive for the files.
The destination is evaluated as per Project.file(Object).
Don't mix it up with getDestinationDir() which specifies the output directory for the archive.into in interface CopySpecinto in class AbstractCopyTaskdestPath - destination directory *inside* the archive for the filescopySpec - The closure to use to configure the child CopySpec.