Re: Monitor the contents of a directory

2019-12-23 Thread Jean-Baptiste Onofré
Hi,

You can extend the deployer on another folder of your choice.

Just edit add a file in etc looking like
etc/org.apache.felix.fileinstall-myfolder.cfg

You can mimic what we have in
etc/org.apache.felix.fileinstall-deploy.cfg configuration file.

Regards
JB

On 23/12/2019 11:06, LuisLo wrote:
> Hi.
> 
> We would like to add a folder with a behavior similar to deploy.
> Is there a service that allows you to monitor the contents of a folder and
> notify when it has changed?
> 
> Our intention was to reuse the deploy operation but we did not find how it
> does it.
> 
> Thanks.
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> 

-- 
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: Monitor the contents of a directory

2019-12-23 Thread Markus Rathgeb
You could have a look at "Apache Felix File Install". Using
felix.fileinstall.dir to setup the watched directories.

LuisLo  schrieb am Mo., 23. Dez. 2019, 11:06:

> Hi.
>
> We would like to add a folder with a behavior similar to deploy.
> Is there a service that allows you to monitor the contents of a folder and
> notify when it has changed?
>
> Our intention was to reuse the deploy operation but we did not find how it
> does it.
>
> Thanks.
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
>


Monitor the contents of a directory

2019-12-23 Thread LuisLo
Hi.

We would like to add a folder with a behavior similar to deploy.
Is there a service that allows you to monitor the contents of a folder and
notify when it has changed?

Our intention was to reuse the deploy operation but we did not find how it
does it.

Thanks.



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html


Re: Custom Karaf + Pax-Exam + Java11

2019-12-23 Thread Serge Huber
I knew it : Santa is JB :)

cheers,
  Serge...

On Mon, Dec 23, 2019 at 10:40 AM  wrote:

> Yes, or just wait for 4.2.8 planned this week ;)
>
> Regards
> JB
>
> Le 23 déc. 2019 10:26, Serge Huber  a écrit :
>
>
> Ok but if I understand correctly I need to use Karaf 4.2.8-SNAPSHOT to do
> it ?
>
> How do I setup the support for a custom distribution ?
>
> Regards,
>   Serge...
>
> On Sun, Dec 22, 2019 at 5:39 PM Jean-Baptiste Onofré 
> wrote:
>
> That's the easiest way !
>
> That's exactly why I created KarafTestSupport !
>
> Regards
> JB
>
> On 22/12/2019 12:40, Serge Huber wrote:
> > Yes indeed this is exactly the problem I’m seeing. I guess we really
> > need to use the KarafTestSupport finally :)
> >
> > Cheers,
> >   Serge
> >
> >
> >   T +41 22 361 3424 
> >
> > 9 route des Jeunes | 1227 Acacias | Switzerland
> > jahia.com 
> > SKYPE  | LINKEDIN
> >  | TWITTER
> >  | VCARD
> > 
> >
> >
> >> JOIN OUR COMMUNITY  to evaluate, get trained
> and to discover why
> > Jahia is a leading User Experience Platform (UXP) for Digital
> > Transformation.
> >
> >> Le 22 déc. 2019 à 12:34, Oliver Lietz  a écrit :
> >>
> >> On Sunday, December 22, 2019 5:34:02 AM CET Jean-Baptiste Onofré wrote:
> >>> Hi Achim,
> >>
> >> Hi,
> >>
> >>> Serge reported the same on Unomi.
> >>>
> >>> I gonna check as, on Jenkins, Karaf itests (based on Pax Exam 4.13.1)
> >>> are working fine.
> >>>
> >>> The think I did for JDK9+ is:
> >>>
> >>>
> https://github.com/apache/karaf/blob/master/itests/common/src/main/java/org/
> >>> apache/karaf/itests/KarafTestSupport.java#L184
> >>>
> >>> So, if your tests extend KarafTestSupport, it should be straight
> forward.
> >>> If you don't extend KarafTestsSupport, you have to mimic the
> >>> configuration.
> >>
> >> We have done it similar for Sling:
> >>
> >>
> https://github.com/apache/sling-org-apache-sling-karaf-integration-tests/blob/
> >>
> master/src/main/java/org/apache/sling/karaf/testing/KarafTestSupport.java#L151
> >>
> >> And it reminds me to open a PR because the duplication of options in
> >> Karaf's
> >> KarafTestSupport is really ugly.
> >>
> >> Regards,
> >> O.
> >>
> >>> Regards
> >>> JB
> >>>
> >>> On 21/12/2019 17:39, Achim Nierbeck wrote:
>  Hi,
> 
>  it's one of those days where it's better to just stop for now.
>  Though I've spent quite some time on figuring out, without real
> success
>  though.
>  Maybe one on the list does have a bright moment to point me into the
>  right direction :)
>  I was working on upgrading the latest dependencies for my karaf+vertx
>  project. [1]
>  And while on it I was trying to build with Java 11. Now what really
>  puzzled me, the Pax-Exam tests all failed because the test container
>  never really started. When trying to start the container alone,
>  everything runs smoothly. Therefore it's something I'm missing with
> the
>  pax-exam setup.
>  I'd be grateful for any input on where I'm wrong :)
> 
>  Thanks, Achim
> 
> 
>  [1] - https://github.com/ANierbeck/Karaf-Vertx/tree/jdk11
> >>
> >>
> >>
> >>
>
> --
> Jean-Baptiste Onofré
> jbono...@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
>
>


Re: Custom Karaf + Pax-Exam + Java11

2019-12-23 Thread jb
Yes, or just wait for 4.2.8 planned this week ;)RegardsJBLe 23 déc. 2019 10:26, Serge Huber  a écrit :Ok but if I understand correctly I need to use Karaf 4.2.8-SNAPSHOT to do it ? How do I setup the support for a custom distribution ?Regards,  Serge... On Sun, Dec 22, 2019 at 5:39 PM Jean-Baptiste Onofré  wrote:That's the easiest way !

That's exactly why I created KarafTestSupport !

Regards
JB

On 22/12/2019 12:40, Serge Huber wrote:
> Yes indeed this is exactly the problem I’m seeing. I guess we really
> need to use the KarafTestSupport finally :)
> 
> Cheers,
>   Serge
> 
> 
>   T +41 22 361 3424 
> 
> 9 route des Jeunes | 1227 Acacias | Switzerland
> jahia.com 
> SKYPE  | LINKEDIN
>  | TWITTER
>  | VCARD
> 
>   
> 
>> JOIN OUR COMMUNITY  to evaluate, get trained and to discover why
> Jahia is a leading User Experience Platform (UXP) for Digital
> Transformation.
> 
>> Le 22 déc. 2019 à 12:34, Oliver Lietz  a écrit :
>>
>> On Sunday, December 22, 2019 5:34:02 AM CET Jean-Baptiste Onofré wrote:
>>> Hi Achim,
>>
>> Hi,
>>
>>> Serge reported the same on Unomi.
>>>
>>> I gonna check as, on Jenkins, Karaf itests (based on Pax Exam 4.13.1)
>>> are working fine.
>>>
>>> The think I did for JDK9+ is:
>>>
>>> https://github.com/apache/karaf/blob/master/itests/common/src/main/java/org/
>>> apache/karaf/itests/KarafTestSupport.java#L184
>>>
>>> So, if your tests extend KarafTestSupport, it should be straight forward.
>>> If you don't extend KarafTestsSupport, you have to mimic the
>>> configuration.
>>
>> We have done it similar for Sling:
>>
>> https://github.com/apache/sling-org-apache-sling-karaf-integration-tests/blob/
>> master/src/main/java/org/apache/sling/karaf/testing/KarafTestSupport.java#L151
>>
>> And it reminds me to open a PR because the duplication of options in
>> Karaf's
>> KarafTestSupport is really ugly.
>>
>> Regards,
>> O.
>>
>>> Regards
>>> JB
>>>
>>> On 21/12/2019 17:39, Achim Nierbeck wrote:
 Hi,

 it's one of those days where it's better to just stop for now.
 Though I've spent quite some time on figuring out, without real success
 though.
 Maybe one on the list does have a bright moment to point me into the
 right direction :)
 I was working on upgrading the latest dependencies for my karaf+vertx
 project. [1]
 And while on it I was trying to build with Java 11. Now what really
 puzzled me, the Pax-Exam tests all failed because the test container
 never really started. When trying to start the container alone,
 everything runs smoothly. Therefore it's something I'm missing with the
 pax-exam setup.
 I'd be grateful for any input on where I'm wrong :)

 Thanks, Achim


 [1] - https://github.com/ANierbeck/Karaf-Vertx/tree/jdk11
>>
>>
>>
>>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com



Re: Custom Karaf + Pax-Exam + Java11

2019-12-23 Thread Serge Huber
Ok but if I understand correctly I need to use Karaf 4.2.8-SNAPSHOT to do
it ?

How do I setup the support for a custom distribution ?

Regards,
  Serge...

On Sun, Dec 22, 2019 at 5:39 PM Jean-Baptiste Onofré 
wrote:

> That's the easiest way !
>
> That's exactly why I created KarafTestSupport !
>
> Regards
> JB
>
> On 22/12/2019 12:40, Serge Huber wrote:
> > Yes indeed this is exactly the problem I’m seeing. I guess we really
> > need to use the KarafTestSupport finally :)
> >
> > Cheers,
> >   Serge
> >
> >
> >   T +41 22 361 3424 
> >
> > 9 route des Jeunes | 1227 Acacias | Switzerland
> > jahia.com 
> > SKYPE  | LINKEDIN
> >  | TWITTER
> >  | VCARD
> > 
> >
> >
> >> JOIN OUR COMMUNITY  to evaluate, get trained
> and to discover why
> > Jahia is a leading User Experience Platform (UXP) for Digital
> > Transformation.
> >
> >> Le 22 déc. 2019 à 12:34, Oliver Lietz  a écrit :
> >>
> >> On Sunday, December 22, 2019 5:34:02 AM CET Jean-Baptiste Onofré wrote:
> >>> Hi Achim,
> >>
> >> Hi,
> >>
> >>> Serge reported the same on Unomi.
> >>>
> >>> I gonna check as, on Jenkins, Karaf itests (based on Pax Exam 4.13.1)
> >>> are working fine.
> >>>
> >>> The think I did for JDK9+ is:
> >>>
> >>>
> https://github.com/apache/karaf/blob/master/itests/common/src/main/java/org/
> >>> apache/karaf/itests/KarafTestSupport.java#L184
> >>>
> >>> So, if your tests extend KarafTestSupport, it should be straight
> forward.
> >>> If you don't extend KarafTestsSupport, you have to mimic the
> >>> configuration.
> >>
> >> We have done it similar for Sling:
> >>
> >>
> https://github.com/apache/sling-org-apache-sling-karaf-integration-tests/blob/
> >>
> master/src/main/java/org/apache/sling/karaf/testing/KarafTestSupport.java#L151
> >>
> >> And it reminds me to open a PR because the duplication of options in
> >> Karaf's
> >> KarafTestSupport is really ugly.
> >>
> >> Regards,
> >> O.
> >>
> >>> Regards
> >>> JB
> >>>
> >>> On 21/12/2019 17:39, Achim Nierbeck wrote:
>  Hi,
> 
>  it's one of those days where it's better to just stop for now.
>  Though I've spent quite some time on figuring out, without real
> success
>  though.
>  Maybe one on the list does have a bright moment to point me into the
>  right direction :)
>  I was working on upgrading the latest dependencies for my karaf+vertx
>  project. [1]
>  And while on it I was trying to build with Java 11. Now what really
>  puzzled me, the Pax-Exam tests all failed because the test container
>  never really started. When trying to start the container alone,
>  everything runs smoothly. Therefore it's something I'm missing with
> the
>  pax-exam setup.
>  I'd be grateful for any input on where I'm wrong :)
> 
>  Thanks, Achim
> 
> 
>  [1] - https://github.com/ANierbeck/Karaf-Vertx/tree/jdk11
> >>
> >>
> >>
> >>
>
> --
> Jean-Baptiste Onofré
> jbono...@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>