ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William G. Thompson, Jr." <>
Subject Re: building your own tasks
Date Tue, 15 Aug 2000 00:53:46 GMT
Michael Klein wrote:
> 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

I've run into the same problem.  The solution for me was to just build
the custom task seperately, and make sure the new task is in ant's


View raw message