You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Benson Margulies (JIRA)" <ji...@apache.org> on 2015/09/09 17:12:46 UTC
[jira] [Comment Edited] (KARAF-3982) Be able to change standard
files during distribution assembly
[ https://issues.apache.org/jira/browse/KARAF-3982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14737011#comment-14737011 ]
Benson Margulies edited comment on KARAF-3982 at 9/9/15 3:12 PM:
-----------------------------------------------------------------
https://github.com/apache/karaf/pull/80 seems done except for the issue I asked for help on.
Here's how this works: You create:
src/main/karaf/assembly-property-edits.xml
to look for something like:
{code}
<property-edits xmlns="http://karaf.apache.org/tools/property-edits/1.0.0">
<edits>
<edit>
<file>config.properties</file>
<operation>put</operation>
<key>karaf.framework</key>
<value>equinox</value>
</edit>
<edit>
<file>config.properties</file>
<operation>extend</operation>
<key>org.osgi.framework.system.capabilities</key>
<value>my-magic-capability</value>
</edit>
</edits>
</property-edits>
{code}
'put' and 'extend' are the usual verbs from the pax-exam container.
Note that this creates a new JAR file that could be used in pax-exam to avoid a DRY violation.
was (Author: bmargulies):
https://github.com/apache/karaf/pull/80 seems done except for the issue I asked for help on.
Here's how this works: You create:
src/main/karaf/assembly-property-edits.xml
to look for something like:
{code}
<property-edits xmlns="http://karaf.apache.org/tools/property-edits/1.0.0">
<edits>
<edit>
<file>config.properties</file>
<operation>put</operation>
<key>karaf.framework</key>
<value>equinox</value>
</edit>
<edit>
<file>config.properties</file>
<operation>extend</operation>
<key>org.osgi.framework.system.capabilities</key>
<value>my-magic-capability</value>
</edit>
</edits>
</property-edits>
{code}
> Be able to change standard files during distribution assembly
> -------------------------------------------------------------
>
> Key: KARAF-3982
> URL: https://issues.apache.org/jira/browse/KARAF-3982
> Project: Karaf
> Issue Type: Improvement
> Components: karaf-tooling
> Reporter: Jean-Baptiste Onofré
>
> The Karaf Maven plugin generates files (etc/org.apache.karaf.features.cfg, etc). It would be great to mimic pax-exam to be able to change these generated files (like put/append instructions).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)