org.gradle.api.tasks.bundling
[Java] Class Zip
java.lang.Object
org.gradle.api.internal.ConventionTask
org.gradle.api.tasks.AbstractCopyTask
org.gradle.api.tasks.bundling.AbstractArchiveTask
org.gradle.api.tasks.bundling.Zip
public class Zip
extends AbstractArchiveTask
Assembles a ZIP archive.
The default is to compress the contents of the zip.
- Authors:
- Hans Dockter
Constructor Summary |
Zip()
|
Methods inherited from class AbstractArchiveTask
|
getAppendix, getArchiveName, getArchivePath, getBaseName, getClassifier, getDestinationDir, getExtension, getVersion, into, into, setAppendix, setArchiveName, setBaseName, setClassifier, setDestinationDir, setExtension, setVersion |
Methods inherited from class 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, into, into, isCaseSensitive, rename, rename, rename, setCaseSensitive, setDirMode, setExcludes, setFileMode, setIncludeEmptyDirs, setIncludes, with |
ZIP_EXTENSION
public static final String ZIP_EXTENSION
-
Zip
public Zip()
-
getCopyAction
protected Zip.ZipCopyActionImpl getCopyAction()
-
getEntryCompression
public ZipEntryCompression getEntryCompression()
- Returns the compression level of the entries of the archive. If set to ZipEntryCompression#DEFLATED#DEFLATED (the default), each entry is
compressed using the DEFLATE algorithm. If set to ZipEntryCompression#STORED#STORED the entries of the archive are left uncompressed.
- Returns:
- the compression level of the archive contents.
setEntryCompression
public void setEntryCompression(ZipEntryCompression entryCompression)
- Sets the compression level of the entries of the archive. If set to ZipEntryCompression#DEFLATED#DEFLATED (the default), each entry is
compressed using the DEFLATE algorithm. If set to ZipEntryCompression#STORED#STORED the entries of the archive are left uncompressed.
- Parameters:
entryCompression
- STORED or DEFLATED
Gradle API 1.6-rc-1