public class DefaultOsgiManifest extends DefaultManifest implements OsgiManifest
| Constructor and Description |
|---|
DefaultOsgiManifest(FileResolver fileResolver) |
| Modifier and Type | Method and Description |
|---|---|
Factory<ContainedVersionAnalyzer> |
getAnalyzerFactory() |
File |
getClassesDir()
Returns the classes dir.
|
FileCollection |
getClasspath()
Returns the classpath.
|
String |
getDescription()
Returns the description.
|
String |
getDocURL()
Returns the docURL value.
|
DefaultManifest |
getEffectiveManifest()
Returns a new manifest instance where all the attribute values are expanded (e.g.
|
Map<String,List<String>> |
getInstructions()
Returns all exisiting 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.
|
List<String> |
instructionValue(String instructionName)
Returns the list of arguments for a particular instruction.
|
void |
setAnalyzerFactory(Factory<ContainedVersionAnalyzer> analyzerFactory) |
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 |
setInstructions(Map<String,List<String>> instructions) |
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.
|
attributes, attributes, clear, from, from, getAttributes, getEffectiveManifestInternal, getMergeSpecs, getSections, isEqualsTo, mainAttributes, writeTo, writeToclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitattributes, attributes, from, from, getAttributes, getSections, writeTo, writeTopublic DefaultOsgiManifest(FileResolver fileResolver)
public DefaultManifest getEffectiveManifest()
ManifestManifest.from(Object...).getEffectiveManifest in interface ManifestgetEffectiveManifest in class DefaultManifestpublic List<String> instructionValue(String instructionName)
OsgiManifestinstructionValue in interface OsgiManifestOsgiManifest.instruction(String, String...)public OsgiManifest instruction(String name, String... values)
OsgiManifestinstruction in interface OsgiManifestOsgiManifest.instructionFirst(String, String...)public OsgiManifest instructionFirst(String name, String... values)
OsgiManifestinstructionFirst in interface OsgiManifestname - Name of the instruction.values - The values for the instruction.OsgiManifest.instructionFirst(String, String...)public Map<String,List<String>> getInstructions()
OsgiManifestgetInstructions in interface OsgiManifestpublic String getSymbolicName()
OsgiManifestgetSymbolicName in interface OsgiManifestOsgiManifest.setSymbolicName(String)public void setSymbolicName(String symbolicName)
OsgiManifestsetSymbolicName in interface OsgiManifestsymbolicName - the symbolicName to setpublic String getName()
OsgiManifestgetName in interface OsgiManifestOsgiManifest.setName(String)public void setName(String name)
OsgiManifestsetName in interface OsgiManifestname - the name to setpublic String getVersion()
OsgiManifestgetVersion in interface OsgiManifestOsgiManifest.setVersion(String)public void setVersion(String version)
OsgiManifestsetVersion in interface OsgiManifestversion - the version to setpublic String getDescription()
OsgiManifestgetDescription in interface OsgiManifestOsgiManifest.setDescription(String)public void setDescription(String description)
OsgiManifestsetDescription in interface OsgiManifestdescription - the description to setpublic String getLicense()
OsgiManifestgetLicense in interface OsgiManifestOsgiManifest.setLicense(String)public void setLicense(String license)
OsgiManifestsetLicense in interface OsgiManifestlicense - The license to setpublic String getVendor()
OsgiManifestgetVendor in interface OsgiManifestOsgiManifest.setVendor(String)public void setVendor(String vendor)
OsgiManifestsetVendor in interface OsgiManifestvendor - The vendor to setpublic String getDocURL()
OsgiManifestgetDocURL in interface OsgiManifestOsgiManifest.setDocURL(String)public void setDocURL(String docURL)
OsgiManifestsetDocURL in interface OsgiManifestdocURL - the docURL to set.public File getClassesDir()
OsgiManifestgetClassesDir in interface OsgiManifestOsgiManifest.setClassesDir(java.io.File)public void setClassesDir(File classesDir)
OsgiManifestsetClassesDir in interface OsgiManifestOsgiManifest.instruction(String, String...)public FileCollection getClasspath()
OsgiManifestgetClasspath in interface OsgiManifestOsgiManifest.setClasspath(org.gradle.api.file.FileCollection)public void setClasspath(FileCollection classpath)
OsgiManifestsetClasspath in interface OsgiManifestclasspath - The classpath elementspublic Factory<ContainedVersionAnalyzer> getAnalyzerFactory()
public void setAnalyzerFactory(Factory<ContainedVersionAnalyzer> analyzerFactory)
Copyright © 2013. All rights reserved