|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
org.gradle.api.java.archives.Manifest org.gradle.api.plugins.osgi.OsgiManifest
public interface OsgiManifest extends Manifest
Represents a manifest file for a JAR containing an OSGi bundle.
Method Summary | |
---|---|
File
|
getClassesDir()
Returns the classes dir. |
FileCollection
|
getClasspath()
Returns the classpath. |
String
|
getDescription()
Returns the description. |
String
|
getDocURL()
Returns the docURL value. |
Map
|
getInstructions()
Returns all existing instruction. |
String
|
getLicense()
Returns the license. |
String
|
getName()
Returns the name. |
String
|
getSymbolicName()
Returns the symbolic name. |
String
|
getVendor()
Returns the vendor. |
String
|
getVersion()
Returns the version. |
OsgiManifest
|
instruction(String name, String... values)
Adds arguments to an instruction. |
OsgiManifest
|
instructionFirst(String name, String... values)
Adds arguments to an instruction. |
OsgiManifest
|
instructionReplace(String name, String... values)
Sets the values for an instruction. |
List
|
instructionValue(String instructionName)
Returns the list of arguments for a particular instruction. |
void
|
setClassesDir(File classesDir)
Sets the classes dir. |
void
|
setClasspath(FileCollection classpath)
A convenient method for setting a Bundle-Classpath instruction. |
void
|
setDescription(String description)
A convenient method for setting a Bundle-Description instruction. |
void
|
setDocURL(String docURL)
A convenient method for setting a Bundle-DocURL instruction. |
void
|
setLicense(String license)
A convenient method for setting a Bundle-License instruction. |
void
|
setName(String name)
A convenient method for setting a Bundle-Name instruction. |
void
|
setSymbolicName(String symbolicName)
A convenient method for setting a Bundle-SymbolicName instruction. |
void
|
setVendor(String vendor)
A convenient method for setting a Bundle-Vendor instruction. |
void
|
setVersion(String version)
A convenient method for setting a Bundle-Version instruction. |
Methods inherited from interface Manifest | |
---|---|
attributes, attributes, from, from, getAttributes, getEffectiveManifest, getSections, writeTo, writeTo |
Method Detail |
---|
public File getClassesDir()
public FileCollection getClasspath()
public String getDescription()
public String getDocURL()
public Map getInstructions()
public String getLicense()
public String getName()
public String getSymbolicName()
public String getVendor()
public String getVersion()
public OsgiManifest instruction(String name, String... values)
public OsgiManifest instructionFirst(String name, String... values)
name
- Name of the instruction.values
- The values for the instruction.
public OsgiManifest instructionReplace(String name, String... values)
name
- Name of the instruction.values
- The values for the instruction.
public List instructionValue(String instructionName)
public void setClassesDir(File classesDir)
public void setClasspath(FileCollection classpath)
classpath
- The classpath elements
public void setDescription(String description)
description
- the description to set
public void setDocURL(String docURL)
docURL
- the docURL to set.
public void setLicense(String license)
license
- The license to set
public void setName(String name)
name
- the name to set
public void setSymbolicName(String symbolicName)
symbolicName
- the symbolicName to set
public void setVendor(String vendor)
vendor
- The vendor to set
public void setVersion(String version)
version
- the version to set
Gradle API 1.12