Overview | Package | Class | Deprecated | Index | Help
| Groovy Documentation
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.gradle.api.internal.plugins.osgi
Class OsgiHelper

    java.lang.Object
      org.gradle.api.internal.plugins.osgi.OsgiHelper

    class OsgiHelper
    extends java.lang.Object

author:
  Hans Dockter

Constructor Summary
`OsgiHelper()`

Method Summary
`java.lang.String` | `getBundleSymbolicName(Project project)` Get the symbolic name as group + "." + archivesBaseName, with the following exceptions if group has only one section (no dots) and archivesBaseName is not null then the first package name with classes is returned. eg. commons-logging:commons-logging -> org.apache.commons.logging if archivesBaseName is equal to last section of group then group is returned. eg.
`java.lang.String` | `getVersion(java.lang.String version)`

Methods inherited from class java.lang.Object
hashCode, getClass, equals, toString, wait, wait, wait, notify, notifyAll

Constructor Detail

### OsgiHelper

    OsgiHelper()

Method Detail

### getBundleSymbolicName

    public java.lang.String getBundleSymbolicName(Project project)

  Get the symbolic name as group + "." + archivesBaseName, with the following exceptions
  - if group has only one section (no dots) and archivesBaseName is not null then the first package name with classes is returned. eg. commons-logging:commons-logging -> org.apache.commons.logging
  - if archivesBaseName is equal to last section of group then group is returned. eg. org.gradle:gradle -> org.gradle
  - if archivesBaseName starts with last section of group that portion is removed. eg. org.gradle:gradle-core -> org.gradle.core

### getVersion

    public java.lang.String getVersion(java.lang.String version)

Groovy Documentation