ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: [patch] NioFileUtils, Java6FileUtils, FileUtilsAdapter + factory, build.xml
Date Tue, 25 Apr 2006 19:57:53 GMT
On Sun, 23 Apr 2006, Antoine Levy-Lambert <antoine@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


Mime
View raw message