|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
public interface Manifest
Represents the manifest file of a JAR file.
Method Summary | |
---|---|
Manifest
|
attributes(Map attributes)
Adds content to the main attributes of the manifest. |
Manifest
|
attributes(Map attributes, String sectionName)
Adds content to the given section of the manifest. |
Manifest
|
from(Object... mergePath)
Specifies other manifests to be merged into this manifest. |
Manifest
|
from(Object mergePath, Closure closure)
Specifies other manifests to be merged into this manifest. |
Attributes
|
getAttributes()
Returns the main attributes of the manifest. |
Manifest
|
getEffectiveManifest()
Returns a new manifest instance where all the attribute values are expanded (e.g. their toString method is called). |
Map
|
getSections()
Returns the sections of the manifest (excluding the main section). |
Manifest
|
writeTo(Writer writer)
Writes the manifest into a writer. |
Manifest
|
writeTo(Object path)
Writes the manifest into a file. |
Method Detail |
---|
public Manifest attributes(Map attributes)
attributes
- The values to add to the main attributes. The values can be any object. For evaluating the value objects
their Object.toString method is used. This is done lazily either before writing or when getEffectiveManifest()
is called.
public Manifest attributes(Map attributes, String sectionName)
attributes
- The values to add to the section. The values can be any object. For evaluating the value objects
their Object.toString method is used. This is done lazily either before writing or when getEffectiveManifest()
is called.sectionName
- The name of the section
public Manifest from(Object... mergePath)
public Manifest from(Object mergePath, Closure closure)
public Attributes getAttributes()
public Manifest getEffectiveManifest()
public Map getSections()
public Manifest writeTo(Writer writer)
writer
- The writer to write the manifest to
public Manifest writeTo(Object path)
path
- The path of the file to write the manifest into.
Gradle API 1.12