Groovy Documentation

org.standardout.gradle.plugin.platform.internal.config
[Groovy] Class BndConfig

java.lang.Object
  org.standardout.gradle.plugin.platform.internal.config.BndConfig

class BndConfig

Represents the configuration of a bundle concerning bnd.


Property Summary
java.lang.Boolean addQualifier

States 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 properties

Map of bnd instruction names to instructions.

 
Constructor Summary
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 initialProperties)

Constructor.

 
Method Summary
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 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 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 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()
 

Property Detail

addQualifier

java.lang.Boolean addQualifier
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.


file

final java.io.File file


group

final java.lang.String group


name

final java.lang.String name


project

final org.gradle.api.Project project


properties

final java.util.Map properties
Map of bnd instruction names to instructions.


 
Constructor Detail

BndConfig

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 initialProperties)
Constructor.
Parameters:
project - the gradle project


 
Method Detail

getBundleName

java.lang.Object getBundleName()


getSymbolicName

java.lang.Object getSymbolicName()


getVersion

java.lang.Object getVersion()


instruction

java.lang.Object instruction(java.lang.String name, java.lang.Object value)
Create a bnd instruction.


optionalImport

java.lang.Object optionalImport(java.lang.String... packages)
Add packages for optional import.


prependImport

java.lang.Object prependImport(java.lang.String... instructions)
Prepend imported packages. Removes conflicting existing package declarations.


prependImport

java.lang.Object prependImport(java.util.List instructions)
Prepend imported packages. Removes conflicting existing package declarations.


setBundleName

void setBundleName(java.lang.String bundleName)
Custom bundle name.


setSymbolicName

void setSymbolicName(java.lang.String symbolicName)
Custom symbolic name.


setVersion

void setVersion(java.lang.String version)
Version that is either provided or can be set for file dependencies.


 

Groovy Documentation