|
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(java.util.Map attributes)
Adds content to the main attributes of the manifest. |
Manifest
|
attributes(java.util.Map attributes, java.lang.String sectionName)
Adds content to the given section of the manifest. |
Manifest
|
from(java.lang.Object... mergePath)
Specifies other manifests to be merged into this manifest. |
Manifest
|
from(java.lang.Object mergePath, groovy.lang.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. there toString method is called). |
java.util.Map
|
getSections()
Returns the sections of the manifest (excluding the main section). |
Manifest
|
writeTo(java.io.Writer writer)
Writes the manifest into a writer. |
Manifest
|
writeTo(java.lang.Object path)
Writes the manifest into a file. |
Method Detail |
---|
public Manifest attributes(java.util.Map attributes)
attributes
- The values to add to the main attributes. The values can be any object. For evaluating the value objects
their java.lang.Object#toString() method is used. This is done lazily either before writing or when getEffectiveManifest()
is called.
public Manifest attributes(java.util.Map attributes, java.lang.String sectionName)
attributes
- The values to add to the section. The values can be any object. For evaluating the value objects
their java.lang.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(java.lang.Object... mergePath)
public Manifest from(java.lang.Object mergePath, groovy.lang.Closure closure)
public Attributes getAttributes()
public Manifest getEffectiveManifest()
public java.util.Map getSections()
public Manifest writeTo(java.io.Writer writer)
writer
- The writer to write the manifest to
public Manifest writeTo(java.lang.Object path)
path
- The path of the file to write the manifest into.
Groovy Documentation