Assembles a JAR archive.
Modifiers | Name | Description |
---|---|---|
static String |
DEFAULT_EXTENSION |
Fields inherited from class | Fields |
---|---|
class Zip |
ZIP_EXTENSION |
Constructor and description |
---|
Jar
() |
Type | Name and description |
---|---|
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. |
Returns the manifest for this JAR archive.
Configures the manifest for this JAR archive.
The given closure is executed to configure the manifest. The Manifest is passed to the closure as its delegate.
configureClosure
- The closure.Adds content to this JAR archive's META-INF directory.
The given closure is executed to configure a CopySpec
. The CopySpec is passed to the closure as its delegate.
CopySpec
configureClosure
- The closure.Sets the manifest for this JAR archive.
manifest
- The manifest. May be null.Gradle API 2.2-20140924021627+0000