ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: [PATCH] Lazy task class loading
Date Wed, 08 Aug 2001 05:24:17 GMT
On Tue, 7 Aug 2001, Paul Kilroy <pkilroy@channelpoint.com> wrote:

> If you have the source for a new task in the same tree that uses it,
> you are unable to build w/o first commenting out the taskdef to
> build the task, then uncommenting it to build the rest of your
> tree.

No, you can do that with vanilla Ant 1.2.

<target name="build-and-define-task">
  <javac dest="wherever-you-want-to-place-your-task" .../>
  <taskdef ...>
    <classpath>
      <pathelement location="wherever-you-want-to-place-your-task" />
    </classpath>
  </taskdef>
</target>

And all targets that use your new task will need to depend on
build-and-define-task of course.

Stefan

Mime
View raw message