karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-4092) feature.xml to support SystemProperties
Date Wed, 02 Nov 2016 15:47:58 GMT

    [ https://issues.apache.org/jira/browse/KARAF-4092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15629363#comment-15629363

Guillaume Nodet commented on KARAF-4092:

In your case, one possibility would be to use a custom url handler.
Something like:
The url handler implementation could use a system properties mapping to translate the abstract
url into something actually usable.

You may be able to reuse the pax link url handler and use a specific maven repo on your file
system that would provide links to the real files.

> feature.xml to support SystemProperties
> ---------------------------------------
>                 Key: KARAF-4092
>                 URL: https://issues.apache.org/jira/browse/KARAF-4092
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-feature
>            Reporter: Amit Patel
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 4.1.0, 3.0.9, 4.0.8
> We need feature.xml file to have access to systemProperty. For example we are using feature
in below format and it has <repo.dir> and <xxx.version>
> define in SystemProperty file. so we can externalized the jar file location and it can
be specified at runtime though SystemProperties 
> <feature name='ajsc-jar' version='0.0.1-SNAPSHOT' description="xxx-jar"> 
> <bundle start-level="260" start="true">file:<repo.dir>/ajsc-jars/osgiservice1/<xxx.version>/xxxx-<xxx.version>.jar</bundle>
> <!-- 	</feature> -->

This message was sent by Atlassian JIRA

View raw message