ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Klein <>
Subject building your own tasks
Date Tue, 15 Aug 2000 00:30:50 GMT
Is there a way to build ANT tasks within the same project they're being used?  It seems that
regardless of where I put my <taskdef> directive, ANT
tries to load the class that implements the task before it does anything else, so I get the

taskdef class myclass cannot be found

I've tried the following, which doesn't work:

  <target name="buildtasks">
    -- build the task classes here --

  <target name="usetasks" depends="buildtasks">
    <taskdef name="mytask" classname="..."/>
    <mytask .../>

but it seems to try to load the 'mytask' classes before building them.


View raw message