Hmmm. something weird is going on. 

I copied this exact build.gradle into the
[gradle-source]\gradle-core\src\samples\osgi directory and executed it and
it generated a SymbolicName of "gradle_tooling.osgi" just as I would expect. 





HamletDRC wrote:
> 
> I'm using the osgi plugin in 0.7. 
> 
> I can't get the Bundle-SymbolicName to be anything other than
> "unspecified.gradle_tooling" unless I set it explicitly. What do I need to
> set to override the "unspecified"? 
> 
> I looked at both the code and the user guide, and I swear I'm doing what
> I'm supposed to! I realize I can just set the SymbolicName manually, but
> I'd like to know how it is generated. 
> 
> Here is my build script: 
> 
> usePlugin 'groovy'
> usePlugin 'osgi'
> 
> version = '1.0'
> group = 'gradle_tooling'
> 
> repositories {
>     mavenRepo(urls: 'http://repository.jboss.org/maven2/')
> }
> 
> dependencies {
>     groovy group: 'org.codehaus.groovy', name: 'groovy-all', version:
> '1.6.0'
>     compile( 'org.eclipse:osgi:3.4.3.R34x_v20081215-1030' )
> }
> 
> 
> configure(jar.osgi) {
>     version = '1.0'
>     name = 'Example Gradle Activator'
>     instruction 'Bundle-Activator', 'org.gradle.GradleActivator'
>     instruction 'Import-Package', '*'
>     instruction 'Export-Package', '*'
> }
> 
> 


-----
--
Hamlet D'Arcy

-- 
View this message in context: 
http://www.nabble.com/how-does-the-osgi-plugin-set-the-Bundle-SymbolicName--tp24943861p24943864.html
Sent from the gradle-user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to