Re: Utility to construct paths out of strings?

2016-02-02 Thread Robert Munteanu
On Mon, 2016-02-01 at 14:17 +0100, Bertrand Delacretaz wrote: > Hi, > > On Mon, Feb 1, 2016 at 1:56 PM, Robert Munteanu > wrote: > > ...we re-re-opened the issue :-) and are leaning towards > > moving the class back in the api bundle, in a different package.. > > That works

Re: Utility to construct paths out of strings?

2016-02-01 Thread Bertrand Delacretaz
Hi, On Mon, Feb 1, 2016 at 1:56 PM, Robert Munteanu wrote: > ...we re-re-opened the issue :-) and are leaning towards > moving the class back in the api bundle, in a different package.. That works for me, if it's a different package it's fine. -Bertrand

Re: Utility to construct paths out of strings?

2016-02-01 Thread Robert Munteanu
On Wed, 2016-01-27 at 16:02 +0200, Robert Munteanu wrote: > On Tue, 2016-01-26 at 18:06 +0200, Robert Munteanu wrote: > > On Tue, 2016-01-26 at 16:15 +0100, Bertrand Delacretaz wrote: > > > Hi Robert, > > > > > > > ... > > > >   https://issues.apache.org/jira/browse/SLING-5455 > > > >  

Re: Utility to construct paths out of strings?

2016-01-27 Thread Chetan Mehrotra
FWIW Oak has a PathUtils [1]. Looking at code it has a minor dependency on Guava which can be fixed. So you can inline this class in your bundle if required Chetan Mehrotra [1]

Re: Utility to construct paths out of strings?

2016-01-27 Thread Robert Munteanu
On Wed, 2016-01-27 at 15:47 +0530, Chetan Mehrotra wrote: > FWIW Oak has a PathUtils [1]. Looking at code it has a minor > dependency on Guava which can be fixed. So you can inline this class > in your bundle if required Thanks for the info. Right now I feel more comfortable with using a minimal

Re: Utility to construct paths out of strings?

2016-01-27 Thread Robert Munteanu
On Tue, 2016-01-26 at 18:06 +0200, Robert Munteanu wrote: > On Tue, 2016-01-26 at 16:15 +0100, Bertrand Delacretaz wrote: > > Hi Robert, > > > > > ... > > >   https://issues.apache.org/jira/browse/SLING-5455 > > >   https://svn.apache.org/r1726814 ... > > > > I have second thoughts about this,

Re: Utility to construct paths out of strings?

2016-01-26 Thread Bertrand Delacretaz
Hi Robert, On Tue, Jan 26, 2016 at 9:44 AM, Robert Munteanu wrote: > ...it's not API right now, but I'll make it for the next release, > probably as part of org.apache.sling.api.resource ... IMO that utility should to into its own package(s) then, to avoid requiring changes

Re: Utility to construct paths out of strings?

2016-01-26 Thread Robert Munteanu
On Mon, 2016-01-25 at 17:56 +0100, Bertrand Delacretaz wrote: > Hi Robert, > > On Mon, Jan 25, 2016 at 4:38 PM, Robert Munteanu > wrote: > > ...Do we have a utility class somewhere that constructs paths out > > of > > strings?... > > I don't think we have a comprehensive

Re: Utility to construct paths out of strings?

2016-01-26 Thread Bertrand Delacretaz
On Tue, Jan 26, 2016 at 1:57 PM, Robert Munteanu wrote: > org.apache.sling.api.text ? .. org.apache.sling.api.paths maybe if it's just about paths? > ...I don't see a related bundle under bundles/commons and I'm not sure > it's worth creating a new bundle just for this

Re: Utility to construct paths out of strings?

2016-01-26 Thread Robert Munteanu
On Tue, 2016-01-26 at 15:05 +0100, Bertrand Delacretaz wrote: > On Tue, Jan 26, 2016 at 1:57 PM, Robert Munteanu > wrote: > > org.apache.sling.api.text ? .. > > org.apache.sling.api.paths maybe if it's just about paths? Sounds good to me.   

Re: Utility to construct paths out of strings?

2016-01-26 Thread Bertrand Delacretaz
Hi Robert, > ... > https://issues.apache.org/jira/browse/SLING-5455 > https://svn.apache.org/r1726814 ... I have second thoughts about this, sorry ;-) Touching our "sacred" API bundle just for this doesn't feel right...how about creating a new bundles/extensions/sling-commons or sling-util

Re: Utility to construct paths out of strings?

2016-01-26 Thread Robert Munteanu
On Tue, 2016-01-26 at 16:15 +0100, Bertrand Delacretaz wrote: > Hi Robert, > > > ... > >   https://issues.apache.org/jira/browse/SLING-5455 > >   https://svn.apache.org/r1726814 ... > > I have second thoughts about this, sorry ;-) > > Touching our "sacred" API bundle just for this doesn't feel

Re: Utility to construct paths out of strings?

2016-01-26 Thread Robert Munteanu
On Tue, 2016-01-26 at 11:32 +0100, Bertrand Delacretaz wrote: > Hi Robert, > > On Tue, Jan 26, 2016 at 9:44 AM, Robert Munteanu > wrote: > > ...it's not API right now, but I'll make it for the next release, > > probably as part of org.apache.sling.api.resource ... > > IMO

Re: Utility to construct paths out of strings?

2016-01-25 Thread Bertrand Delacretaz
Hi Robert, On Mon, Jan 25, 2016 at 4:38 PM, Robert Munteanu wrote: > ...Do we have a utility class somewhere that constructs paths out of > strings?... I don't think we have a comprehensive one, there are bits and pieces (jackrabbit-jcr-commons maybe?) but we can probably

Utility to construct paths out of strings?

2016-01-25 Thread Robert Munteanu
Hi, Do we have a utility class somewhere that constructs paths out of strings? I just rolled my own ( not yet committed ) to handle joining path segments with various leading and trailing suffices and I was curious whether we have one that I can reuse. I need this for less obvious combinations