ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Antlib alias?
Date Wed, 03 May 2006 07:19:03 GMT
>I was wondering if there would be any usefulness in adding an 'alias' 
>attribute, which could take a list of aliases.  This would 
>allow an antlib to have an official name for a task, whilst 
>still allowing the use of abbreviations (which is fairly 
>common in unix land (--verbose/-v etc)).
>
><antlib>
>  <taskdef
>    name="my_task"
>    alias="t, task, task1"
>    classname="org.apache.ant.my_task.Task1"
>    />
>...
>
></antlib>


And you would end in an build file like

<project xmlns:my="...">
   <my:my_task/>
   <echo/>
   <my:t/>
   <my:task1/>
</project>


I wouldnt think that this a desired goal...
If you _really_ want to have that, you could use <presetdef> for
abbreviations, too.


Jan

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


Mime
View raw message