|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gradle.api.internal.ConventionTask org.gradle.api.tasks.AbstractCopyTask org.gradle.api.tasks.bundling.AbstractArchiveTask
public abstract class AbstractArchiveTask extends AbstractCopyTask
AbstractArchiveTask is the base class for all archive tasks.
Method Summary | |
---|---|
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)
|
Methods inherited from class AbstractCopyTask | |
---|---|
configureRootSpec, copy, createCopyAction, createRootSpec, eachFile, eachFile, exclude, exclude, exclude, exclude, expand, filesMatching, filesNotMatching, filter, filter, filter, from, from, getDefaultSource, getDirMode, getDuplicatesStrategy, getExcludes, getFileMode, getIncludeEmptyDirs, getIncludes, getMainSpec, getRootSpec, getSource, include, include, include, include, into, into, isCaseSensitive, rename, rename, rename, setCaseSensitive, setDirMode, setDuplicatesStrategy, setExcludes, setFileMode, setIncludeEmptyDirs, setIncludes, with |
Method Detail |
---|
public String getAppendix()
public String getArchiveName()
[baseName]-[appendix]-[version]-[classifier].[extension]
@OutputFile public File getArchivePath()
public String getBaseName()
public String getClassifier()
public File getDestinationDir()
public String getExtension()
public String getVersion()
public AbstractArchiveTask into(Object destPath)
destPath
- destination directory *inside* the archive for the files
public AbstractArchiveTask into(Object destPath, Closure configureClosure)
destPath
- destination directory *inside* the archive for the filesconfigureClosure
- The closure to use to configure the child CopySpec.
public void setAppendix(String appendix)
public void setArchiveName(String name)
name
- the archive name.
public void setBaseName(String baseName)
public void setClassifier(String classifier)
public void setDestinationDir(File destinationDir)
public void setExtension(String extension)
public void setVersion(String version)
Gradle API 1.12