Groovy Documentation

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


getVersion

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


 

Groovy Documentation