public abstract class AbstractArchiveTask extends AbstractCopyTask
AbstractArchiveTask
is the base class for all archive tasks.Task.Namer
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
コンストラクタと説明 |
---|
AbstractArchiveTask() |
修飾子とタイプ | メソッドと説明 |
---|---|
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.
|
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, filesNotMatching, filter, filter, filter, from, from, getDirMode, getDuplicatesStrategy, getExcludes, getFileLookup, getFileMode, getFileResolver, getFileSystem, getIncludeEmptyDirs, getIncludes, getInstantiator, getMainSpec, getRootSpec, getSource, include, include, include, include, isCaseSensitive, rename, rename, rename, setCaseSensitive, setDirMode, setDuplicatesStrategy, setExcludes, setFileMode, setIncludeEmptyDirs, setIncludes, with
conventionMapping, conventionMapping, getConventionMapping
addValidator, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, executeWithoutThrowingTaskFailure, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getImpliesSubProjects, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, leftShift, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setName, setOnlyIf, setOnlyIf, setProject, setProperty, setShouldRunAfter, shouldRunAfter, toString
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
.public File getDestinationDir()
public void setDestinationDir(File destinationDir)
public String getBaseName()
public void setBaseName(String baseName)
public String getAppendix()
public void setAppendix(String appendix)
public String getVersion()
public void setVersion(String version)
public String getExtension()
public void setExtension(String extension)
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
インタフェース内 CopyProcessingSpec
into
インタフェース内 CopySpec
into
クラス内 AbstractCopyTask
destPath
- 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
インタフェース内 CopySpec
into
クラス内 AbstractCopyTask
destPath
- destination directory *inside* the archive for the filesconfigureClosure
- The closure to use to configure the child CopySpec
.