felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "james strachan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-4378) generate a metatype.properties file if label/description values are used on @Component or @Property which don't start with %
Date Wed, 15 Jan 2014 17:18:24 GMT

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

james strachan commented on FELIX-4378:
---------------------------------------

Sure, here's a sample:
https://github.com/jstrachan/fuse/blob/work/fabric/fabric-camel-autotest/src/main/java/io/fabric8/camel/autotest/CamelAutoTestService.java#L67-67

and here's the XML it generates:
{code}
<?xml version="1.0" encoding="UTF-8"?><metatype:MetaData xmlns:metatype="http://www.osgi.org/xmlns/metatype/v1.0.0"
localization="OSGI-INF/metatype/metatype">
    <OCD id="io.fabric8.camel.autotest" name="Fabric8 Camel Auto Test Service" description="%io.fabric8.camel.autotest.description">
        <AD id="mockOutputs" type="Boolean" default="true" name="Mock output endpoints"
description="If enabled then the output endpoints are replaced with mock endpoints for easier
testing/viewing and the underlying middleware isn't used."/>
        <AD id="mockInputs" type="Boolean" default="true" name="Mock input endpoints" description="If
enabled then the input endpoints on tested camel routes are stubbed out so the underlying
middleware isn't used."/>
        <AD id="messageFolder" type="String" default="testMessages" name="Test message
folder" description="The folder path in the wiki to store sample input messages"/>
    </OCD>
    <Designate pid="io.fabric8.camel.autotest">
        <Object ocdref="io.fabric8.camel.autotest"/>
    </Designate>
</metatype:MetaData>
{code}


> generate a metatype.properties file if label/description values are used on @Component
or @Property which don't start with %
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-4378
>                 URL: https://issues.apache.org/jira/browse/FELIX-4378
>             Project: Felix
>          Issue Type: Improvement
>          Components: Maven SCR Plugin
>            Reporter: james strachan
>            Assignee: Carsten Ziegeler
>             Fix For: maven-scr-plugin 1.15.0
>
>
> I tried using 1.15.0 of the plugin and added some textual string values (which don't
start with %) for label/description on @Component and @Property and they get generated into
the metatype.xml file as text strings.
> I was hoping the XML would use "%foo.label" and "%foo.description" then generate a metatype.properties
with the mapping of foo.label = "My Label" so that folks can add extra languages by just adding
a new metatype file?



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message