I figured out part 1 of my question (and also how to specify
symbolicName) and now my jar task looks like:

jar {
  archiveName="com.mycompany.osgi.server_8.2.0.0000-0001.jar"

  manifest {
    version = '1.0'
    name = 'Server'
    symbolicName="com.mycompany.osgi.server"
    instruction 'Bundle-Version',  '8.2.0.0000-0001'
    instruction 'Bundle-ManifestVersion', '2'
    instruction 'Require-Bundle', 'com.mycompanyosgi.proxy',
                  'com.mycompany.wep.plugin.runtime',
'com.mycompany.eda.orchestrator',
                  'com.mycompany.osgi.is.core', ' org.eclipse.osgi', 'javax.jms'
    instruction 'Bundle-Activator', 'com.mycompany.wep.osgi.server.Activator'
    instruction 'Import-Package', ' com.mycompany.server',  'com.mycompany.data'
    instruction 'Bundle-ClassPath', '.,lib/enttoolkit.jar', 'lib/mail.jar'
    instruction 'Eclipse-ExtensibleAPI', 'true'
  }
}

still don't know how to embed a lib/enttoolkit.jar and mail.jar in
there though....

ideas?

On Mon, Aug 9, 2010 at 2:00 PM, phil swenson <[email protected]> wrote:
> here is my jar task (using osgi plugin):
>
> jar {
>  manifest {
>    version = '1.0'
>    name = 'MyOsgiJar'
>    instruction 'Bundle-Name', 'Server'
>    instruction 'Bundle-SymbolicName', 'com.mycompany.osgi.server'
>    instruction 'Bundle-Version',  '1.0.0.0000-qualifier'
>    instruction 'Require-Bundle', 'com.mycompany.osgi.proxy',
>                  'com.mycompany.plugin.runtime',
> 'com.mycompany.eda.orchestrator',
>                  'com.mycompany.osgi.is.core', ' org.eclipse.osgi', 
> 'javax.jms'
>    instruction 'Bundle-Activator', 'com.mycompany.osgi.server.Activator'
>    instruction 'Import-Package', ' com.mycompany.c2c.server',
> 'com.mycompany.data', 'com.mycompany.jms.admin'
>    instruction 'Bundle-ClassPath', 'lib/enttoolkit.jar', 'lib/mail.jar'
>  }
> }
>
> question 1: how can I change the name of my jar artifact in my gradle
> build?  right now it outputs "gradle.jar" in the build/libs directory
>
> question 2: how can I embed jars inside my artifact in the lib
> directory (specifially the lib/enttoolkit.jar and lib/mail.jar?
>
> Note I'm using Gradle 0.9 preview 3
>
> thanks for any help....
>

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

    http://xircles.codehaus.org/manage_email


Reply via email to