felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cristiano Gavião (JIRA) <j...@apache.org>
Subject [jira] [Comment Edited] (FELIX-5116) Dump SCR component definitions broken
Date Mon, 27 Jun 2016 12:34:52 GMT

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

Cristiano Gavião edited comment on FELIX-5116 at 6/27/16 12:34 PM:
-------------------------------------------------------------------

I'm trying this with the 3.1.0-Snapshot but it is not working with the manifest goal.

The variable bpHeader is always coming as null in my tests:
{code}
    String bpHeader = analyzer.getProperty(Analyzer.SERVICE_COMPONENT);
    Parameters map = Processor.parseHeader(bpHeader, null);
    for (String root : map.keySet())
{code}

could someone explain me the reason for try to get this property from analyzer instead to
directly get the directory map from the jar (dot) that was built by bnd? the same way it is
doing for metatypes?
{code}
         // export metatype files from OSGI-INF/metatype
        Map<String,Resource> metatypeDir = jar.getDirectories().get(MetaTypeService.METATYPE_DOCUMENTS_LOCATION);
{code}


was (Author: cvgaviao):
I'm trying this with the 3.1.0-Snapshot but it is not working with the manifest goal.

The variable bpHeader is always coming as null in my tests:
{code}
    String bpHeader = analyzer.getProperty(Analyzer.SERVICE_COMPONENT);
    Parameters map = Processor.parseHeader(bpHeader, null);
    for (String root : map.keySet())
{code}

could someone explain me the reason for try to get this property from analyzer instead the
jar (dot) that was built by bnd as it is doing for metatypes?
{code}
         // export metatype files from OSGI-INF/metatype
        Map<String,Resource> metatypeDir = jar.getDirectories().get(MetaTypeService.METATYPE_DOCUMENTS_LOCATION);
{code}

> Dump SCR component definitions broken
> -------------------------------------
>
>                 Key: FELIX-5116
>                 URL: https://issues.apache.org/jira/browse/FELIX-5116
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven Bundle Plugin
>    Affects Versions: maven-bundle-plugin-3.0.0
>            Reporter: Stefan Seifert
>            Assignee: Carsten Ziegeler
>             Fix For: maven-bundle-plugin-3.1.0
>
>         Attachments: FELIX-5116.patch
>
>
> the feature to optionally dump SCR component definitions generated by bnd to the output
classes folder introduced in FELIX-3324 is broken ins maven-bundle-plugin 3.0.0 and 3.0.1
- the associated code is never called when generating the bundle or manifest.
> the attached patch fixes this and enabled the behavior for both manifest and bundle goals.
> this feature is imporant for unit test support in IDEs, e.g. for https://sling.apache.org/documentation/development/osgi-mock.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message