ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <anto...@gmx.de>
Subject Re: svn commit: r437589 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/condition/AntVersion.java
Date Mon, 28 Aug 2006 15:57:44 GMT
Hello Kev,

may be we can fill a String Buffer by hand with digits and dots until we find something else
?

Regards,

Antoine
-------- Original-Nachricht --------
Datum: Mon, 28 Aug 2006 21:02:42 +0700
Von: Kev Jackson <foamdino@gmail.com>
An: "Ant Developers List" <dev@ant.apache.org>
Betreff: Re: svn commit: r437589 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/condition/AntVersion.java

> 
> On 28 Aug 2006, at 19:09, Antoine Levy-Lambert wrote:
> 
> > Hi,
> >
> > I am not very fond of this versionString.indexOf("Ant version") 
> > +17); either.
> > A regular expression looking for a string of digits and dots would  
> > be what we are looking for ?
> 
> Unfortunately regexps aren't available in Java 1.2[1], do you have  
> another suggestion for avoiding the brittle indexOf method?
> 
> I'm happy to work on this to fix it, or if you are still unhappy,  
> pull it from the release - your call.
> 
> Thanks
> Kev
> 
> [1] http://marc.theaimsgroup.com/?l=ant-dev&m=114861730527898&w=2
> --
> "Government is begotten of aggression, by aggression" - Herbert Spencer
> 

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


Mime
View raw message