This class is used to define Extensions which are used for converting non osgi dependencies to osgi dependencies. Inorder to convert a jar into OSGi bundle, it must be specified in dependencies of the project and `bundle` function must be called for that jar. The mechanism that is employed to convert jars to bundles is simple and as follows 1) Unzip the jar in `build/unpacked` directory, this is accomplished by creating a task of type {
| Modifiers | Name | Description |
|---|---|---|
java.util.List<ManifestHeaders> |
toBeWrapped |
This List is just used to store information of all the jars that needs to be wrapped. |
| Constructor and description |
|---|
WrapperExtension
(org.gradle.api.tasks.Copy task) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
bundle(java.lang.String id, groovy.lang.Closure configurator)This method is called by the user through an extension when he wants to register a jar which needs to converted to bundle. |
|
void |
bundle(java.lang.String id, java.lang.String version, groovy.lang.Closure configurator)This method is called by the user through an extension when he wants to register a jar which needs to converted to bundle. |
|
void |
wrap()This method converts jars to bundles. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
This List is just used to store information of all the jars that needs to be wrapped. This information include id, version of jar and all the manifest headers that the user wants to set.
This method is called by the user through an extension when he wants to register a jar which needs to converted to bundle. Before registering it first checks if the jar which the user wants to convert is registered as a dependency under proper configuration.
id - Id of the jar to get wrappedversion - Version of jarconfigurator - Used to get information of all the manifest headers which the user wants to set.This method is called by the user through an extension when he wants to register a jar which needs to converted to bundle. Before registering it first checks if the jar which the user wants to convert is registered as a dependency under proper configuration.
id - Id of the jar to get wrappedversion - Version of jarconfigurator - Used to get information of all the manifest headers which the user wants to set.This method converts jars to bundles. The mechanism that is employed to convert jars to bundles is simple and as follows 1) Unzip the jar in `build/unpacked` directory, this is accomplished by creating a task of type {