felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre De Rop (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-4135) Bnd scrplugin contrib
Date Thu, 04 Jul 2013 17:01:50 GMT

    [ https://issues.apache.org/jira/browse/FELIX-4135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13700216#comment-13700216
] 

Pierre De Rop commented on FELIX-4135:
--------------------------------------

Thanks Carsten; 

Yes; the "destdir" parameter could be made optional, because by default bndtools generates
classes in the "bin" directory (and I'm not sure if it's even possible to configure this directory
from bndtools at all?). So it makes sense to configure "destdir" param to "bin" as the default
value in the code, in order to avoid specifying it in the bnd configuration.

But before doing it, may be you (or me ?) could first commit the attached bnd-scr-plugin.3.tgz,
and then I will commit the modif for the "destdir" parameter in svn ?


                
> Bnd scrplugin contrib
> ---------------------
>
>                 Key: FELIX-4135
>                 URL: https://issues.apache.org/jira/browse/FELIX-4135
>             Project: Felix
>          Issue Type: Improvement
>          Components: Maven SCR Plugin
>            Reporter: Pierre De Rop
>            Priority: Minor
>         Attachments: bnd-scr-plugin.2.tgz, bnd-scr-plugin.3.tgz, bnd-scr-plugin.tgz,
test.bndtools.scrplugin.2.tgz, test.bndtools.scrplugin.tgz
>
>
> This issue is related to the following post, which is about writing a bndtools plugin
for the Apache Felix Scrplugin annotations:
>  http://www.mail-archive.com/dev@felix.apache.org/msg29200.html
> If this may help, I have attached to this issue a simple BND plugin, which internally
invokes the SCRDescriptorGenerator in order to generate the descriptors for Apache Felix Scr
annotations, as well as DS 1.2 annotations (using the scrplugin generator).
> Basically, just adding the following parameter in a directives.bnd file allows to invoke
the plugin:
>     -plugin org.apache.felix.scrplugin.bnd.SCRDescriptorBndPlugin;destdir=target/classes
> I did some tests using a BND Ant task, and it seems to work, and will try to do a test
with bndtools this week (for now I don't know how to add a plugin in bndtools, but I guess
it's easy).

--
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

Mime
View raw message