You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Mario Ivankovits <im...@apache.org> on 2004/06/14 11:23:19 UTC
[vfs][all][poll]regular expression library or jdk1.4 as minimum requirement
Hello!
A contribution of Rami Ojares brings in an "PatternSelector" to handle
ant-style patterns (/dir/**/file) to select files.
This class currently uses the jdk1.4 regular expression library.
Now there are some questions how to handle the regexp thing:
[ ] Avoid dependency to jdk1.4.
[ ] ... use jakarta-regexp
[ ] ... use jakarta-oro
[ ] ... use the regexp bundled with ant. But then we could not use the
PatternSelector without the ant.jar and have to move it to the vfs.ant
package. This powerfull thing might then not be useable for projects
without it.
[ ] Dont bother and use jdk1.4 as minimum requirement (and its regexp)
Here is my vote:
[X] Dont bother and use jdk1.4 as minimum requirement
But i dont know which jdk version will be the most used and this is why
i started this poll.
IMHO at least for a sandbox component it should be permitted to use this
"bleeding edge ;-)" jdk-version.
PS: During writing of this poll, i noticed that there already two
dependencies to the jdk1.4, but those can be easily reverted.
--
Mario
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [vfs][all][poll][RESULT] regular expression library or jdk1.4
as minimum requirement
Posted by Mario Ivankovits <im...@apache.org>.
Thanks for your support!
4 Avoid dependency to jdk1.4.
0 ... use jakarta-regexp
2 ... use jakarta-oro
0 ... use the regexp bundled with ant.
2 Dont bother and use jdk1.4 as minimum requirement (and its regexp)
So it is clear to me, that jdk1.4 is no option for vfs for now and i can
follow your doubts.
jakarta-oro seems a very powerfull solution, but even if is intentaion
was only to be an interface - its size has reached 100K - i already hear
others yelling ;-)
Might it be possible to split the discovery/interfaces (use
class.forName for its own implementations too) and the implementation to
have a small(er) "discovery library"?
For sure, i know it IS possible ;-), the question is, is this something
the ORO project would like to do, or could this be a starting point to
refactor ORO and build a "commons-RegexpDiscovery", or move the
implementations to jakarta-regexp, or ....
--
Mario
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [vfs][all][poll]regular expression library or jdk1.4 as minimum
requirement
Posted by Anthony Goubard <an...@chello.nl>.
Mario Ivankovits wrote:
> Hello!
>
> A contribution of Rami Ojares brings in an "PatternSelector" to handle
> ant-style patterns (/dir/**/file) to select files.
> This class currently uses the jdk1.4 regular expression library.
>
> Now there are some questions how to handle the regexp thing:
> [ ] Avoid dependency to jdk1.4.
> [ ] ... use jakarta-regexp
> [ ] ... use jakarta-oro
> [ ] ... use the regexp bundled with ant. But then we could not use the
> PatternSelector without the ant.jar and have to move it to the vfs.ant
> package. This powerfull thing might then not be useable for projects
> without it.
>
> [X ] Dont bother and use jdk1.4 as minimum requirement (and its regexp)
Anthony
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [vfs][all][poll]regular expression library or jdk1.4 as minimum
requirement
Posted by Martin Cooper <ma...@apache.org>.
On Mon, 14 Jun 2004, Mario Ivankovits wrote:
> Hello!
>
> A contribution of Rami Ojares brings in an "PatternSelector" to handle
> ant-style patterns (/dir/**/file) to select files.
> This class currently uses the jdk1.4 regular expression library.
>
> Now there are some questions how to handle the regexp thing:
> [X] Avoid dependency to jdk1.4.
> [ ] ... use jakarta-regexp
> [X] ... use jakarta-oro
> [ ] ... use the regexp bundled with ant.
IIRC, DFS changed ORO recently so that JDK 1.4 could be used, if desired,
so having VFS use ORO makes sense to me.
--
Martin Cooper
> But then we could not use the
> PatternSelector without the ant.jar and have to move it to the vfs.ant
> package. This powerfull thing might then not be useable for projects without
> it.
>
> [ ] Dont bother and use jdk1.4 as minimum requirement (and its regexp)
>
>
> Here is my vote:
> [X] Dont bother and use jdk1.4 as minimum requirement
> But i dont know which jdk version will be the most used and this is why i
> started this poll.
> IMHO at least for a sandbox component it should be permitted to use this
> "bleeding edge ;-)" jdk-version.
>
>
> PS: During writing of this poll, i noticed that there already two
> dependencies to the jdk1.4, but those can be easily reverted.
>
> --
> Mario
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [vfs][all][poll]regular expression library or jdk1.4 as minimum
requirement
Posted by Emmanuel Bourg <eb...@micropole-univers.com>.
The real question turns to: who is still using the jdk 1.3, and does
this population match the intended target for [vfs] ? I was planning to
integrate [vfs] into [configuration] but I consider the jdk 1.3
compatibility as a requirement since I'm deploying on WebSphere 4, and
most of the time changing the application server is not an option :(
Emmanuel Bourg
Mario Ivankovits wrote:
> Now there are some questions how to handle the regexp thing:
> [X] Avoid dependency to jdk1.4.
> [ ] ... use jakarta-regexp
> [ ] ... use jakarta-oro
> [ ] ... use the regexp bundled with ant. But then we could not use the
> PatternSelector without the ant.jar and have to move it to the vfs.ant
> package. This powerfull thing might then not be useable for projects
> without it.
>
> [ ] Dont bother and use jdk1.4 as minimum requirement (and its regexp)
>
>
> Here is my vote:
> [X] Dont bother and use jdk1.4 as minimum requirement
> But i dont know which jdk version will be the most used and this is why
> i started this poll.
> IMHO at least for a sandbox component it should be permitted to use this
> "bleeding edge ;-)" jdk-version.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
Re: [vfs][all][poll]regular expression library or jdk1.4 as minimum
requirement
Posted by Anthony Goubard <an...@chello.nl>.
Mario Ivankovits wrote:
> Hello!
>
> A contribution of Rami Ojares brings in an "PatternSelector" to handle
> ant-style patterns (/dir/**/file) to select files.
> This class currently uses the jdk1.4 regular expression library.
>
> Now there are some questions how to handle the regexp thing:
> [ ] Avoid dependency to jdk1.4.
> [ ] ... use jakarta-regexp
> [ ] ... use jakarta-oro
> [ ] ... use the regexp bundled with ant. But then we could not use the
> PatternSelector without the ant.jar and have to move it to the vfs.ant
> package. This powerfull thing might then not be useable for projects
> without it.
>
> [X] Dont bother and use jdk1.4 as minimum requirement (and its regexp)
>
The best would be that the Ant regex system with only ** * and ? could
be easily extracted in one class or 2.
If I understand correctly if the jdk 1.4 is the minimum requirement and
someone uses VFS with jdk 1.2 or 1.3 only the PatternSelector will throw
a ClassNotFoundException, right?
Anthony
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
RE: [vfs][all][poll]regular expression library or jdk1.4 as minimum requirement
Posted by "Noel J. Bergman" <no...@devtech.com>.
Now there are some questions how to handle the regexp thing:
[X] Avoid dependency to jdk1.4.
JDK 1.3 should be the highest minimum standard unless the code absolutely
positively needs java.nio.
--- Noel
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org