Interface OsgiManifest
- All Superinterfaces:
Manifest
Deprecated.
Represents a manifest file for a JAR containing an OSGi bundle.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the classes dir.Deprecated.Returns the classpath.Deprecated.Returns the description.Deprecated.Returns the docURL value.Deprecated.Returns all existing instruction.Deprecated.Returns the license.getName()Deprecated.Returns the name.Deprecated.Returns the symbolic name.Deprecated.Returns the vendor.Deprecated.Returns the version.instruction(String name, String... values) Deprecated.Adds arguments to an instruction.instructionFirst(String name, String... values) Deprecated.Adds arguments to an instruction.instructionReplace(String name, String... values) Deprecated.Sets the values for an instruction.instructionValue(String instructionName) Deprecated.Returns the list of arguments for a particular instruction.voidsetClassesDir(File classesDir) Deprecated.Sets the classes dir.voidsetClasspath(FileCollection classpath) Deprecated.A convenient method for setting a Bundle-Classpath instruction.voidsetDescription(String description) Deprecated.A convenient method for setting a Bundle-Description instruction.voidDeprecated.A convenient method for setting a Bundle-DocURL instruction.voidsetLicense(String license) Deprecated.A convenient method for setting a Bundle-License instruction.voidDeprecated.A convenient method for setting a Bundle-Name instruction.voidsetSymbolicName(String symbolicName) Deprecated.A convenient method for setting a Bundle-SymbolicName instruction.voidDeprecated.A convenient method for setting a Bundle-Vendor instruction.voidsetVersion(String version) Deprecated.A convenient method for setting a Bundle-Version instruction.Methods inherited from interface Manifest
attributes, attributes, from, from, from, getAttributes, getEffectiveManifest, getSections, writeTo
-
Method Details
-
instructionValue
-
instruction
Deprecated.Adds arguments to an instruction. If the instruction does not exists, it is created. If it does exists, the arguments are appended to the existing arguments.- Returns:
- this
- See Also:
-
instructionFirst
Deprecated.Adds arguments to an instruction. If the instruction does not exists, it is created. If it does exists, the arguments are inserted before the existing arguments.- Parameters:
name- Name of the instruction.values- The values for the instruction.- Returns:
- this
- See Also:
-
instructionReplace
Deprecated.Sets the values for an instruction. If the instruction does not exists, it is created. If it does exists, the values replace the existing values.- Parameters:
name- Name of the instruction.values- The values for the instruction.- Returns:
- this
- See Also:
-
getInstructions
-
getSymbolicName
String getSymbolicName()Deprecated.Returns the symbolic name.- Returns:
- the symbolic name.
- See Also:
-
setSymbolicName
Deprecated.A convenient method for setting a Bundle-SymbolicName instruction.- Parameters:
symbolicName- the symbolicName to set
-
getName
-
setName
Deprecated.A convenient method for setting a Bundle-Name instruction.- Parameters:
name- the name to set
-
getVersion
-
setVersion
Deprecated.A convenient method for setting a Bundle-Version instruction.- Parameters:
version- the version to set
-
getDescription
-
setDescription
Deprecated.A convenient method for setting a Bundle-Description instruction.- Parameters:
description- the description to set
-
getLicense
-
setLicense
Deprecated.A convenient method for setting a Bundle-License instruction.- Parameters:
license- The license to set
-
getVendor
-
setVendor
Deprecated.A convenient method for setting a Bundle-Vendor instruction.- Parameters:
vendor- The vendor to set
-
getDocURL
-
setDocURL
Deprecated.A convenient method for setting a Bundle-DocURL instruction.- Parameters:
docURL- the docURL to set.
-
getClassesDir
-
setClassesDir
Deprecated.Sets the classes dir. This directory is the major source of input for generation the OSGi manifest. All classes are analyzed for its packages and package dependencies. Based on this the Import-Package value is set. This auto generated value can be overwritten by explicitly setting an instruction.- See Also:
-
getClasspath
-
setClasspath
Deprecated.A convenient method for setting a Bundle-Classpath instruction. The information of the classpath elements are only used if they are OSGi bundles. In this case for example the version information provided by the bundle is used in the Import-Package of the generated OSGi bundle.- Parameters:
classpath- The classpath elements
-