|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gradle.api.internal.ConventionTask
org.gradle.api.tasks.AbstractCopyTask
org.gradle.api.tasks.bundling.AbstractArchiveTask
org.gradle.api.tasks.bundling.Zip
org.gradle.api.tasks.bundling.Jar
class Jar extends Zip
Assembles a JAR archive.
Field Summary | |
---|---|
static String |
DEFAULT_EXTENSION
|
Fields inherited from class Zip | |
---|---|
ZIP_EXTENSION |
Constructor Summary | |
Jar()
|
Method Summary | |
---|---|
Manifest
|
getManifest()
Returns the manifest for this JAR archive. |
CopySpec
|
getMetaInf()
|
Jar
|
manifest(Closure configureClosure)
Configures the manifest for this JAR archive. |
CopySpec
|
metaInf(Closure configureClosure)
Adds content to this JAR archive's META-INF directory. |
void
|
setManifest(Manifest manifest)
Sets the manifest for this JAR archive. |
Methods inherited from class Zip | |
---|---|
createCopyAction, getCompressor, getEntryCompression, isZip64, setEntryCompression, setZip64 |
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, 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 |
Field Detail |
---|
public static final String DEFAULT_EXTENSION
Constructor Detail |
---|
Jar()
Method Detail |
---|
Manifest getManifest()
CopySpec getMetaInf()
Jar manifest(Closure configureClosure)
The given closure is executed to configure the manifest. The Manifest is passed to the closure as its delegate.
configureClosure
- The closure.
CopySpec metaInf(Closure configureClosure)
The given closure is executed to configure a CopySpec. The CopySpec is passed to the closure as its delegate.
configureClosure
- The closure.
void setManifest(Manifest manifest)
manifest
- The manifest. May be null.
Gradle API 1.12