ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: PropertyFile task is optional?
Date Mon, 31 Jan 2005 15:39:01 GMT
On Mon, 31 Jan 2005, Dominique Devienne <DDevienne@lgc.com> wrote:
>> From: Stefan Bodewig [mailto:bodewig@apache.org]
>> On Fri, 28 Jan 2005, Douglas Kramer <Douglas.Kramer@sun.com> wrote:
>> > I'm new to Ant and have been wanting to understand optional tasks
>> > better.  I'm trying to decide between using ReplaceRegExp
>> > and PropertyFile (which is more what I want, but has the
>> > comment bug).  I wanted to figure out which to use based
>> > perhaps on the library for it.
>> 
>> PropertyFile doesn't need any additional library.  In theory
>> ReplaceRegExp on JDK 1.4 doesn't either, but we highly recommend
>> using ORO over using JDK's java.util.regexp package.
> 
> And I'm curious to know why?

Mainly because of the platform dependency of the line separator in JDK
1.4 - see replaceregexp manual page.  Stephane also found a couple of
other inconsistencies and problems with it.

Stefan

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


Mime
View raw message