Re: Karaf assembly plugin property edits erasing properties

2018-06-08 Thread Jean-Baptiste Onofré
Sorry I meant prepend because it could change the reading of the property. It seems like a regression in 4.2.0. I created https://issues.apache.org/jira/browse/KARAF-5781 On the other hand, I also created https://issues.apache.org/jira/browse/KARAF-5782 to verify the create kar goal behavior.

Re: execute only at first startup?

2018-06-08 Thread David Jencks
Well, you have to store the initialization state in some data somewhere :-) Now we have 3 or 4 ideas: I think the simplest solution is going to be with BundleContext.getDataFile: getDataFile

Re: Karaf assembly plugin property edits erasing properties

2018-06-08 Thread Francois Papon
Ok, sorry for the understanding. François Papon fpa...@apache.org Open3m - https://www.open3m.io Le 08/06/2018 à 20:52, Alex Soto a écrit : > I understand “extend” will append the value to the existing property, > not what I am looking for, but I tried, and still didn’t work, i.e., > same

Re: Karaf assembly plugin property edits erasing properties

2018-06-08 Thread Alex Soto
I understand “extend” will append the value to the existing property, not what I am looking for, but I tried, and still didn’t work, i.e., same result. Best regards, Alex soto > On Jun 8, 2018, at 12:46 PM, Francois Papon > wrote: > > Mmm weird, because I used "extend" and it appended in

Re: Karaf assembly plugin property edits erasing properties

2018-06-08 Thread Francois Papon
Mmm weird, because I used "extend" and it appended in the end of the property file. Can you try ? François Papon fpa...@apache.org Open3m - https://www.open3m.io Le 08/06/2018 à 19:54, Alex Soto a écrit : > Hi François, JB mentioned “append” but I do not see any “append” in > your example. > As

Re: Karaf assembly plugin property edits erasing properties

2018-06-08 Thread Alex Soto
Hi François, JB mentioned “append” but I do not see any “append” in your example. As I indicated in my original post, I am using put but all other properties in the file are being removed. Best regards, Alex soto > On Jun 8, 2018, at 11:43 AM, Francois Papon > wrote: > > Hi Alex, > >

Re: Karaf assembly plugin property edits erasing properties

2018-06-08 Thread Francois Papon
Hi Alex, Here an example : http://karaf.apache.org/tools/property-edits/1.0.0;>       config.properties     put     karaf.framework     equinox         config.properties     extend    

Re: Karaf assembly plugin property edits erasing properties

2018-06-08 Thread Alex Soto
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é wrote: > > Did you set append on the edit ? > > Regards > JB > > On

Re: Unresolved dependency using blueprint transaction

2018-06-08 Thread Francois Papon
You can also add the config in a feature.xml, I will create the file in the "etc" directory when installing your feature :             osgi.jdbc.driver.class=org.apache.derby.jdbc.EmbeddedDriver     dataSourceName=jdbc/vineyard    

Re: Unresolved dependency using blueprint transaction

2018-06-08 Thread Francois Papon
Here an example of datasource-file for Apache Derby database : osgi.jdbc.driver.class=org.apache.derby.jdbc.EmbeddedDriver dataSourceName=jdbc/vineyard url=jdbc:derby:data/vineyard/derby;create=true François Papon fpa...@apache.org Open3m - https://www.open3m.io Le 08/06/2018 à 18:45,

Re: Unresolved dependency using blueprint transaction

2018-06-08 Thread Jean-Baptiste Onofré
Yes, you have to install the datasource "provider". And then, use jdbc:ds-create that create etc/org.ops4j.datasource-xxx.cfg file Regards JB On 08/06/2018 16:24, ceugster wrote: > Hi > I tried to follow the enterprise jdbc section of your documentation and had > some time to find out, that

Re: Unresolved dependency using blueprint transaction

2018-06-08 Thread ceugster
Hi I tried to follow the enterprise jdbc section of your documentation and had some time to find out, that besides karaf@root()> feature:repo-add pax-jdbc karaf@root()> feature:install pax-jdbc karaf@root()> feature:install pax-jdbc-config karaf@root()> feature:install jdbc there should also

Re: Karaf assembly plugin property edits erasing properties

2018-06-08 Thread Jean-Baptiste Onofré
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:  > > >     org.ops4j.pax.web.cfg >     put

Re: Karaf assembly plugin property edits erasing properties

2018-06-08 Thread SvS
Hi Alex, I have similar problems. In my opinion, it is not the expected behavior. Older versions work as you would like. I am using the old version of the karaf-maven plugin (4.0.10). See this

Re: Any plans for supporting JDK 11 ?

2018-06-08 Thread Serge Huber
Thanks a lot for all this information. I had some questions about JDK 11 support and you've given lots of details that I will be able to relay internally. And of course thanks a lot for all the hard work, I wish I could contribute more :) cheers, Serge... ps : for those of us who don't know