lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Lalevée (JIRA) <>
Subject [jira] Updated: (LUCENE-1344) Make the Lucene jar an OSGi bundle
Date Sun, 31 Aug 2008 13:55:44 GMT


Nicolas Lalevée updated LUCENE-1344:

    Attachment: MANIFEST.MF.diff

You are right to ask Michael, one part of the patch was risky, the part that was computing
the version dynamically. I changed the way the properties were loaded and it made some mess
with building the contrib during the release process.
So I removed it. So then instead of 
ant -Dversion=2.3.0-rc1 -Dspec.version=2.3.0 clean dist dist-src generate-maven-artifacts
there should be
ant -Dversion=2.3.0-rc1 -Dspec.version=2.3.0 -Dbundle.version=2.3.0.cr1 clean dist dist-src

Note that there is no spell mistake here. The OSGi specification expects that the qualifier
part of the version (the last one) is incremented based on the lexical order. So 2.3.0 <
2.3.0.rc1. But 2.3.0.alpha1 < 2.3.0.beta1 < 2.3.0.beta2 < 2.3.0.cr1 <

About the remaining patch, it is really just about adding additional fields into the,
addition which is triggered by the existence of the bundle.manifest.file property. I attached
the diff of the manifest of the core of a 2.4.0 release, between the trunk version and the
patched one. And If I remove the property bundle.manifest.file from the build.xml, there is
no diff at all (apart from the Implementation-Version because of the timestamp).

> Make the Lucene jar an OSGi bundle
> ----------------------------------
>                 Key: LUCENE-1344
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Build
>            Reporter: Nicolas Lalevée
>             Fix For: 2.4
>         Attachments: LUCENE-1344-r679133.patch, LUCENE-1344-r690675.patch, LUCENE-1344-r690691.patch,
> In order to use Lucene in an OSGi environment, some additional headers are needed in
the manifest of the jar. As Lucene has no dependency, it is pretty straight forward and it
ill be easy to maintain I think.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message