Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-589

A better OSGi sample project is needed

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 0.7
    • Fix Version/s: 0.8

      Description

      The existing osgi example doesn't do much. It generates a .tar.gz file which isn't valid on a Windows machine. It does not produce an OSGi bundle or show proper usage.

      I created a new sample. It creates a Hello World Activator, implemented in Groovy, and then shows how to correctly generate a Import-Package and Export-Package off of the data.

      Patch is attached.

      Bundle is valid on at least Eclipse Equinox.

      For reference, the MANIFEST.MF produced is:

      Manifest-Version: 1.0
      Ant-Version: Apache Ant 1.7.0
      Created-By: 1.6.0_04 (Sun Microsystems Inc.)
      Export-Package: org.gradle;uses:="groovy.lang,org.codehaus.groovy.refl
      ection,org.codehaus.groovy.runtime,org.osgi.framework,org.codehaus.gr
      oovy.runtime.callsite";version="1.0"
      Bundle-Version: 1.0
      Tool: Bnd-0.0.255
      Bnd-LastModified: 1250128067203
      Bundle-Name: Example Gradle Activator
      Bundle-ManifestVersion: 2
      Bundle-Activator: org.gradle.GradleActivator
      Import-Package: groovy.lang;version="1.6",org.codehaus.groovy.reflecti
      on;version="1.6",org.codehaus.groovy.runtime;version="1.6",org.codeha
      us.groovy.runtime.callsite;version="1.6",org.gradle;version="1.0",org
      .osgi.framework;version="1.4"
      Bundle-SymbolicName: gradle_tooling.osgi

        Attachments

          Activity

            People

            Assignee:
            adammurdoch Adam Murdoch
            Reporter:
            hamletdrc Hamlet D'Arcy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: