Groovy Documentation

org.gradle.api.tasks.bundling
[Java] Class AbstractArchiveTask

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.

Authors:
Hans Dockter


Method Summary
java.lang.String getAppendix()

Returns the appendix part of the archive name, if any.

java.lang.String getArchiveName()

Returns the archive name.

java.io.File getArchivePath()

The path where the archive is constructed.

java.lang.String getBaseName()

Returns the base name of the archive.

java.lang.String getClassifier()

Returns the classifier part of the archive name, if any.

java.io.File getDestinationDir()

Returns the directory where the archive is generated into.

java.lang.String getExtension()

Returns the extension part of the archive name.

java.lang.String getVersion()

Returns the version part of the archive name, if any.

void setAppendix(java.lang.String appendix)

void setArchiveName(java.lang.String name)

Sets the archive name.

void setBaseName(java.lang.String baseName)

void setClassifier(java.lang.String classifier)

void setDestinationDir(java.io.File destinationDir)

void setExtension(java.lang.String extension)

void setVersion(java.lang.String version)

 
Methods inherited from class AbstractCopyTask
configureRootSpec, copy, eachFile, eachFile, exclude, exclude, exclude, exclude, expand, filter, filter, filter, from, from, getCopyAction, getDefaultSource, getDirMode, getExcludes, getFileMode, getIncludes, getMainSpec, getRootSpec, getSource, include, include, include, include, into, into, isCaseSensitive, rename, rename, rename, setCaseSensitive, setDirMode, setExcludes, setFileMode, setIncludes, with
 

Method Detail

getAppendix

public java.lang.String getAppendix()
Returns the appendix part of the archive name, if any.
Returns:
the appendix. May be null


getArchiveName

public java.lang.String getArchiveName()
Returns the archive name. If the name has not been explicitly set, the pattern for the name is: [baseName]-[appendix]-[version]-[classifier].[extension]
Returns:
the archive name.


getArchivePath

@OutputFile
public java.io.File getArchivePath()
The path where the archive is constructed. The path is simply the destinationDir plus the archiveName.
Returns:
a File object with the path to the archive


getBaseName

public java.lang.String getBaseName()
Returns the base name of the archive.
Returns:
the base name.


getClassifier

public java.lang.String getClassifier()
Returns the classifier part of the archive name, if any.
Returns:
The classifier. May be null.


getDestinationDir

public java.io.File getDestinationDir()
Returns the directory where the archive is generated into.
Returns:
the directory


getExtension

public java.lang.String getExtension()
Returns the extension part of the archive name.


getVersion

public java.lang.String getVersion()
Returns the version part of the archive name, if any.
Returns:
the version. May be null.


setAppendix

public void setAppendix(java.lang.String appendix)


setArchiveName

public void setArchiveName(java.lang.String name)
Sets the archive name.
Parameters:
name - the archive name.


setBaseName

public void setBaseName(java.lang.String baseName)


setClassifier

public void setClassifier(java.lang.String classifier)


setDestinationDir

public void setDestinationDir(java.io.File destinationDir)


setExtension

public void setExtension(java.lang.String extension)


setVersion

public void setVersion(java.lang.String version)


 

Groovy Documentation