Re: Integration test depending of Sling job

2017-12-20 Thread Stefan Egli
Hi Johan, Could it be that your jobFinised() method returns true since job == null, which could be the case shortly before/while the job is even being created? Ie it could be a race condition at the start of the job (and by adding a 5sec sleep you give it enough time to start + finish). Cheers,

Re: Integration test depending of Sling job

2017-12-20 Thread Bertrand Delacretaz
Hi, On Wed, Dec 20, 2017 at 3:16 PM, Johan Ruttens wrote: >... Basically I'm searching for a better way to determine when the job is > finished I don't remember the details off the top of my head but I suppose OSGi events are sent to indicate the job's progress -

Re: Maven plugin to set property on a resource

2017-12-20 Thread Justin Edelson
FWIW, it is possible to externalize that script into a file and then reference it as the source parameter. It's obviously a judgement call as to whether you put the script inline or in an external files, but the below would be enough lines of code for me to want to stick it in an external file :)

Tracking of use of sling vanity urls

2017-12-20 Thread Roy Teeuwen
Hey all, We have a use case that we would like to track in our analytics if a vanity url is used. A user comes in on the site with https://www.mysite.com/my-vanity-url and gets rewritten to https://www.mysite.com/my/real/page.html