[ 
https://issues.apache.org/jira/browse/LUCENE-3167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tommaso Teofili updated LUCENE-3167:
------------------------------------

    Attachment: LUCENE-3167_20130108.patch

New _not final_ version of the patch.

I'm not an Ant expert so I may be missing something, if that's the case feel 
free to correct / point me to where / how fix things.

With this new one it's possible to run _ant compile -Dosgi=true_ to have OSGi 
ready jars' manifests so that single modules can be installed and started in an 
OSGi container.
By default however the OSGi build doesn't happen.

What is still missing is a smart and non intrusive way of setting correctly the 
OSGi exported-package directive. Currently that's set to 
_org.apache.lucene*;version=${version}, 
org.apache.lucene.*;version=${version};-split-package:=merge-first_ for all the 
bundles which is not correct.

As a side note I noticed that in lucene/core/build.xml the classpath is not set 
while is set to the core files in the root build.xml; this seems to me a bit 
odd, is there any specific reason for that?
In the patch I temporarily added the correct classpath in lucene/core/build.xml 
(which is needed for the OSGi build for the core to export the packages).
                
> Make lucene/solr a OSGI bundle through Ant
> ------------------------------------------
>
>                 Key: LUCENE-3167
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3167
>             Project: Lucene - Core
>          Issue Type: New Feature
>         Environment: bndtools
>            Reporter: Luca Stancapiano
>         Attachments: LUCENE-3167_20130108.patch, LUCENE-3167.patch, 
> LUCENE-3167.patch, LUCENE-3167.patch, lucene_trunk.patch, lucene_trunk.patch
>
>
> We need to make a bundle thriugh Ant, so the binary can be published and no 
> more need the download of the sources. Actually to get a OSGI bundle we need 
> to use maven tools and build the sources. Here the reference for the creation 
> of the OSGI bundle through Maven:
> https://issues.apache.org/jira/browse/LUCENE-1344
> Bndtools could be used inside Ant

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to