ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <>
Subject Generic vs non-generic?
Date Sun, 10 Jun 2001 06:12:27 GMT

I was wondering on which was thought to be more useful.

<typedef name="javac" type="task" classname="org.apache.ant.Javac">


<taskdef name="javac" classname="org.apache.ant.Javac">

The first part is more powerful and seems to be the trend that all features
of ant move towards (ie see Copy* --> Copy). The second is nicer for less
technical sophisticated audience but could lead to a whole bunch of tasks

They same issue comes up import style statements 

<import library="jdk.tsk" name="javac" type="task"/>


<import-task library="jdk.tsk" name="javac"/>



| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |

View raw message