Represents the configuration of a bundle concerning bnd.
| Type | Name and description |
|---|---|
java.lang.Boolean |
addQualifierStates if a qualifier should be added. |
java.io.File |
file |
java.lang.String |
group |
java.lang.String |
name |
org.gradle.api.Project |
project |
java.util.Map<java.lang.String, java.lang.String> |
propertiesMap of bnd instruction names to instructions. |
| Constructor and description |
|---|
BndConfig
(org.gradle.api.Project project, java.lang.String group, java.lang.String name, java.lang.String version, java.io.File file, java.util.Map<java.lang.String, java.lang.String> initialProperties)Constructor. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.Object |
getBundleName() |
|
java.lang.Object |
getSymbolicName() |
|
java.lang.Object |
getVersion() |
|
java.lang.Object |
instruction(java.lang.String name, java.lang.Object value)Create a bnd instruction. |
|
java.lang.Object |
instructions(java.util.Map map)Add instructions using named parameters |
|
java.lang.Object |
optionalImport(java.lang.String... packages)Add packages for optional import. |
|
java.lang.Object |
prependImport(java.lang.String... instructions)Prepend imported packages. |
|
java.lang.Object |
prependImport(java.util.List<java.lang.String> instructions)Prepend imported packages. |
|
void |
setBundleName(java.lang.String bundleName)Custom bundle name. |
|
void |
setSymbolicName(java.lang.String symbolicName)Custom symbolic name. |
|
void |
setVersion(java.lang.String version)Version that is either provided or can be set for file dependencies. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), 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() |
States if a qualifier should be added. Either the default qualifier
or a qualifier based on the bnd configuration hash will be used,
depending on the project configuration.
Tri-state flag. A null value means that the default is used.
Map of bnd instruction names to instructions.
Constructor.
project - the gradle projectCreate a bnd instruction.
Add instructions using named parameters
Add packages for optional import.
Prepend imported packages. Removes conflicting existing package declarations.
Prepend imported packages. Removes conflicting existing package declarations.
Custom bundle name.
Custom symbolic name.
Version that is either provided or can be set for file dependencies.
Groovy Documentation