initialcontext / jsendnsca

Automatically exported from code.google.com/p/jsendnsca
0 stars 0 forks source link

OSGI Manifest #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

it would be great to use bundlor or bnd to generate an OSGI-compatible 
manifest. This allows jsendnsca to be integrated in an osgi environment 
without custom changes. Both of them run inside ant, so changes would be 
minimal. 

http://www.springsource.org/bundlor
http://www.aqute.biz/Code/Bnd

Original issue reported on code.google.com by toe...@gmail.com on 10 Jan 2010 at 8:54

GoogleCodeExporter commented 9 years ago
Hi toelen

First, changing this issue type to an Enhancement rather than a defect ;-)

Secondly, im planning a version 2.0 of JSend NSCA at the moment. As part of 
that 
release, was considering using Maven for build and packaging and having the 
project 
available from the maven repo's.

Not come across bundlor or bnd before but sounds interesting. Wondering if you 
would like to add this as part of release 2.0. 

If so, let me know and will add you as a committer to enable this.

Regards

Raj

Original comment by rajneeshpatel on 10 Jan 2010 at 1:15

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by rajneeshpatel on 13 Jan 2010 at 11:55

GoogleCodeExporter commented 9 years ago
In Maven there is a plugin which can create the bundle nearly automatically. We 
use that for Apache Camel.

Most all you need to tell in to use bundle as packaging in the pom.xml
<packaging>bundle</packaging>

And then include that plugin

Original comment by claus.ib...@gmail.com on 18 Jan 2010 at 6:06

GoogleCodeExporter commented 9 years ago
I have always used maven bundle plugin (which uses bnd internally) and it works 
great.

http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html

Bundlor can also work in maven http://blog.springsource.com/2009/03/20/getting-
started-with-bundlor/

Original comment by toe...@gmail.com on 18 Jan 2010 at 7:05

GoogleCodeExporter commented 9 years ago
Hi toelen

I've incorporated felix into the pom in the 2.0 source at 

http://jsendnsca.googlecode.com/svn/trunk/jsendnsca/  

as suggested and tested. Seems to be generating a manifest with also sorts of 
bundle 
info as below. Is this what is required and if so, will be in 2.0 release

xport-Package: com.googlecode.jsendnsca;uses:="org.apache.commons.lan
 g.builder,org.apache.commons.lang,com.googlecode.jsendnsca.utils,com.
 googlecode.jsendnsca.encryption";version="2.0.0.SNAPSHOT",com.googlec
 ode.jsendnsca.builders;uses:="com.googlecode.jsendnsca,com.googlecode
 .jsendnsca.encryption";version="2.0.0.SNAPSHOT",com.googlecode.jsendn
 sca.encryption;uses:="javax.crypto.spec,javax.crypto,org.apache.commo
 ns.lang";version="2.0.0.SNAPSHOT",com.googlecode.jsendnsca.utils;uses
 :="org.apache.commons.lang";version="2.0.0.SNAPSHOT"
Tool: Bnd-0.0.357
Bundle-Name: jsendnsca
Bundle-Vendor: Google Code
Bundle-Version: 2.0.0.SNAPSHOT
Bnd-LastModified: 1264497395432
Bundle-ManifestVersion: 2
Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.html
Bundle-Description: Java API for sending Passive Checks to Nagios NSCA
  addon
Import-Package: com.googlecode.jsendnsca;version="2.0",com.googlecode.
 jsendnsca.builders;version="2.0",com.googlecode.jsendnsca.encryption;
 version="2.0",com.googlecode.jsendnsca.utils;version="2.0",javax.cryp
 to,javax.crypto.spec,org.apache.commons.lang;version="2.4",org.apache
 .commons.lang.builder;version="2.4"
Bundle-SymbolicName: com.googlecode.jsendnsca
Bundle-DocURL: http://code.google.com/hosting/

Original comment by rajneeshpatel on 26 Jan 2010 at 9:25

GoogleCodeExporter commented 9 years ago
Hi,

the generated Manifest looks great.

Thanks a lot,
Leen

Original comment by toe...@gmail.com on 26 Jan 2010 at 10:06

GoogleCodeExporter commented 9 years ago
Thanks for the quick feedback, marking as fixed

Original comment by rajneeshpatel on 26 Jan 2010 at 10:16