ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Klein <Michael.Kl...@agilesoft.com>
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
error:

taskdef class myclass cannot be found

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

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

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

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

-mike



Mime
View raw message