|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gradle.api.internal.AbstractTask org.gradle.api.DefaultTask org.gradle.api.internal.ConventionTask org.gradle.api.tasks.AbstractCopyTask org.gradle.api.tasks.bundling.AbstractArchiveTask
public abstract class AbstractArchiveTask
AbstractArchiveTask
is the base class for all archive tasks.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.gradle.api.Task |
---|
Task.Namer |
Field Summary |
---|
Fields inherited from interface org.gradle.api.Task |
---|
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE |
Constructor Summary | |
---|---|
AbstractArchiveTask()
|
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 org.gradle.api.tasks.AbstractCopyTask |
---|
configureRootSpec, copy, eachFile, eachFile, exclude, exclude, exclude, exclude, expand, filter, filter, filter, from, from, getCopyAction, getDefaultSource, getDirMode, getExcludes, getFileMode, getIncludeEmptyDirs, getIncludes, getMainSpec, getRootSpec, getSource, include, include, include, include, isCaseSensitive, rename, rename, rename, setCaseSensitive, setDirMode, setExcludes, setFileMode, setIncludeEmptyDirs, setIncludes, with |
Methods inherited from class org.gradle.api.internal.ConventionTask |
---|
conventionMapping, conventionMapping, conventionMapping, getConventionMapping, setConventionMapping |
Methods inherited from class org.gradle.api.internal.AbstractTask |
---|
addValidator, captureStandardOutput, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, disableStandardOutputCapture, doFirst, doFirst, doLast, doLast, execute, executeWithoutThrowingTaskFailure, getActions, getAdditionalProperties, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getDynamicObjectHelper, getEnabled, getExecuter, getExtensions, getGroup, getInputs, getLogger, getLogging, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getStandardOutputCapture, getState, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, leftShift, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setGroup, setName, setOnlyIf, setOnlyIf, setProject, setProperty, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractArchiveTask()
Method Detail |
---|
public String getArchiveName()
[baseName]-[appendix]-[version]-[classifier].[extension]
public void setArchiveName(String name)
name
- the archive name.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
in interface CopyProcessingSpec
into
in interface CopySpec
into
in class AbstractCopyTask
destPath
- destination directory *inside* the archive for the files
public AbstractArchiveTask into(Object destPath, Closure configureClosure)
CopySpec
with a destination directory *inside* the archive for the files.
The destination is evaluated as for Project.file(Object)
.
Don't mix it up with getDestinationDir()
which specifies the output directory for the archive.
into
in interface CopySpec
into
in class AbstractCopyTask
destPath
- destination directory *inside* the archive for the filesconfigureClosure
- The closure to use to configure the child CopySpec
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |