Append?  No, I've never seen this documented anywhere, can you point me to a 
documentation resource where this is mentioned/illustrated?

Best regards,
Alex soto




> On Jun 8, 2018, at 8:52 AM, Jean-Baptiste Onofré <[email protected]> wrote:
> 
> Did you set append on the edit ?
> 
> Regards
> JB
> 
> On 07/06/2018 21:47, Alex Soto wrote:
>> Hello,
>> 
>> Using Karaf 4.2.0, I want to update a property in my custom
>> distribution. So I add file /src/main/karaf/assembly-property-edits.xml/
>> with: 
>> 
>>    <edit>
>>        <file>org.ops4j.pax.web.cfg</file>
>>        <operation>put</operation>
>>        <key>org.osgi.service.http.port</key>
>>        <value>8182</value>
>>    </edit>
>> 
>> 
>> The result is:
>> 
>>    #Modified by org.apache.karaf.tools.utils.KarafPropertiesFile
>>    #Thu Jun 07 15:39:28 EDT 2018
>>    org.osgi.service.http.port=8182
>> 
>> 
>> 
>> The issue is that it erased all other properties.  Normally, this file
>> has the following:
>> 
>>    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
>> 
>> 
>> 
>> Is this the expected behavior?   How can I preserve the rest of the
>> properties and modify just one?
>> 
>> Best regards,
>> Alex soto
>> 
>> 
> 
> -- 
> Jean-Baptiste Onofré
> [email protected]
> http://blog.nanthrax.net
> Talend - http://www.talend.com

Reply via email to