karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-5781) Properties edit doesn't conserve the existing ones
Date Thu, 12 Jul 2018 13:07:00 GMT

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

ASF GitHub Bot commented on KARAF-5781:
---------------------------------------

vanSabben opened a new pull request #552: [KARAF-5781] Properties edit doesn't conserve the
existing ones
URL: https://github.com/apache/karaf/pull/552
 
 
   Now it use the existing file and performs the specified changes.
   
   Signed-off-by: van Sabben <4246302+vanSabben@users.noreply.github.com>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Properties edit doesn't conserve the existing ones
> --------------------------------------------------
>
>                 Key: KARAF-5781
>                 URL: https://issues.apache.org/jira/browse/KARAF-5781
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-tooling
>    Affects Versions: 4.2.0
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: 4.2.1
>
>
> When building a custom distribution, adding file {{src/main/karaf/assembly-property-edits.xml}}
with: 
> {code}
>     <edit>
>         <file>org.ops4j.pax.web.cfg</file>
>         <operation>put</operation>
>         <key>org.osgi.service.http.port</key>
>         <value>8182</value>
>     </edit>
> {code}
> The result is:
> {code}
>     #Modified by org.apache.karaf.tools.utils.KarafPropertiesFile
>     #Thu Jun 07 15:39:28 EDT 2018
>     org.osgi.service.http.port=8182
> {code}
> The issue is that it erased all other properties.  Normally, this file has the following:
> {code}
>     org.osgi.service.http.port=8181
>     javax.servlet.context.tempdir=${karaf.data}/pax-web-jsp
>     org.ops4j.pax.web.config.file=${karaf.etc}/jetty.xml
> {code}
> It seems to work fine with previous Karaf 4.1.x plugin version.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message