ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jose Alberto Fernandez <>
Subject RE: removing deprecated stuff
Date Wed, 05 Dec 2001 11:40:30 GMT
 --- Tim Vernum <> wrote: > 
> All this should be centrally done.
> Project.checkDeprecationTask( "javadoc2" ,
> Some_Version ) ;
> Project.checkDeprecationAttribute( "file" ,
> Some_Version ) ;
> Project.checkDeprecationElement( "zipfileset" ,
> Some_Version ) ;
> The project can throw a build exception with an
> appropriate message, 
> and all the logic of checking the current version
> against previous
> versions is in one place.

I disagree. For example, a user may define its own
"javadoc2" we can not just deprecate the name.
Deprecation is associated with the class or method

Same applies for others, we cannot just deprecate
"file" as an attribute, it is a task by task issue.

With respect to centralized checking, I agree the code
doing the actual checking needs to be centralized.
That is why I am proposing a new method simillar to
Task.log() that people will call and the correct thing
will happened.

The text of the message should be simillar to that you
are suppose to put in your @deprecated javadoc

Jose Alberto

Nokia 5510 looks weird sounds great. 
Go to discover and win it! 
The competition ends 16 th of December 2001.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message