You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Stefan Bodewig <bo...@apache.org> on 2006/04/25 21:57:53 UTC

Re: [patch] NioFileUtils, Java6FileUtils, FileUtilsAdapter + factory, build.xml

On Sun, 23 Apr 2006, Antoine Levy-Lambert <an...@gmx.de> wrote:

> Similarly, I wonder what happens for a user who would
> 
>            1) build ant under JDK 1.2,
>             2) run ant under JDK 1.4,
> 
> and attempt to use the RegexpFactory, for instance through the
> <replaceregexp/> task ?.
> 
> The RegexpFactory does not check whether
> org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp is present,
> only whether java.util.regex.Matcher is present.
> 
> Actually, I was wondering whether we are not already forbidding - de
> facto and silently - this type of use cases.

I vaguely recall a bug report along those lines.  Yes, you are
correct, the current code simply assumes you have all implementations
around.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org