+1 Jan >-----Ursprüngliche Nachricht----- >Von: Steve Loughran [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 16. Juli 2007 17:25 >An: Ant Developers List >Betreff: Re: Vote: Proposed removal of the ant-type attribute > >Peter Reilly wrote: >> Hi all, >> there is an undocumented feature in ant - the ant-type attribute. >> It was added when the original add(Type) code was put >> in. >> >> It allows one to replace a class (y) in addX(Class y) with a >> typedef as follows: >> <typedef classpathref="my-class-path" >> name = "mypath" classname="org.example.MyPath"/> >> <mytask> >> <path ant-type="mypath" path="."/> >> </mytask> >> >> I do not think that it is used anywhere as: >> 1) it is undocumented >> 2) it is hard to understand >> 3) add(Type) as been added to most tasks that need them >> 4) it is not complete see: >> http://marc.info/?l=ant-dev&m=106854472219108&w=2 >> 5) the ant 1.7 resources framework should be the way to handle >> the use-cases. >> >> I would like to remove the feature as it complicates the >> code of RuntimeConfigurable and IntrospectionHelper and >> makes it more difficult to add new features (for example to handle >> restricted types). >> >> I propose the following: >> >> 1) add a warning in ant 1.7.1 that is triggered if the >feature is used - >> this should root out examples in the wild. >> 2) remove the code in ant 1.8.0. >> > >I never knew it existed, and havent documented it either. > > Vote: > +1: I agree with the proposal: [ +1 ] > -1: I do not agree with the proposal: [ ] > 0: I do not care either way: [ ] > > >-- >Steve Loughran http://www.1060.org/blogxter/publish/5 >Author: Ant in Action http://antbook.org/ > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]