ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bevan Arps <>
Subject Re: removing deprecated stuff
Date Thu, 29 Nov 2001 21:25:21 GMT

I wrote:

 > I'd suggest going the other way:
 > ONLY support deprecated features when run with a -legacy flag.

Magesh responded:

 > The user would always run ant using -legacy turned on without
 > caring to upgrade tasks?

Quite possibly - the idea here, though, is that the user has to explicitly 
decide to use the flag to get access to deprecated features. This avoids 
the "problem" of people using features and not realizing they are 
deprecated. The messages could also include "hints" to point people in the 
right direction.

One implementation could be to give errors without the flag, and warnings 
with. Behaviour could be something like this.

Without the flag:

Error: <deltree> is deprecated and should be replaced with <delete>.
Error: See for details.

With the flag:

Warning: Deprecated features are used in this build.
Warning: This build file should be updated to avoid using these features.
Warning: <deltree> is deprecated and should be replaced with <delete>.
Warning: See for details.

Just my 2c,

"Programming is an Art Form that Fights Back"

Bevan Arps (<>
Senior OO Analyst, ACT Financial Systems

This communication  is confidential  to ACT  Financial  Systems  (Asia 
Pacific)  and is intended for  use only by the  addressee.   The  views and 
opinions  expressed in  this email  are the senders  own and do not 
represent  the  views  and  opinions of  ACT  Financial  Systems  (Asia 

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message