Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 94527 invoked from network); 31 Jan 2005 15:39:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 31 Jan 2005 15:39:10 -0000 Received: (qmail 2844 invoked by uid 500); 31 Jan 2005 15:39:06 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 2651 invoked by uid 500); 31 Jan 2005 15:39:05 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 2635 invoked by uid 99); 31 Jan 2005 15:39:05 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from bodewig.bost.de (HELO bodewig.bost.de) (62.96.16.111) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 31 Jan 2005 07:39:03 -0800 Received: (from bodewig@localhost) by bodewig.bost.de (8.11.6/8.11.6) id j0VFd1q01783; Mon, 31 Jan 2005 16:39:01 +0100 X-Authentication-Warning: bodewig.bost.de: bodewig set sender to bodewig@apache.org using -f To: user@ant.apache.org Subject: Re: PropertyFile task is optional? X-Draft-From: ("nnfolder:mail.jakarta-ant-user" 46099) References: From: Stefan Bodewig Date: Mon, 31 Jan 2005 16:39:01 +0100 In-Reply-To: (Dominique Devienne's message of "Mon, 31 Jan 2005 09:29:16 -0600") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Mon, 31 Jan 2005, Dominique Devienne wrote: >> From: Stefan Bodewig [mailto:bodewig@apache.org] >> On Fri, 28 Jan 2005, Douglas Kramer 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