Kai Bartels <[EMAIL PROTECTED]> wrote:

> When I only insert the taskdef into the build file, the jar is not
> required, but as soon as I insert a target that uses ajc, ant tries
> to instantiate the AJC class while parsing the build file (I'm not
> trying to _use_ the task at that point!).

Ant >= 1.2 should try to instantiate the task but fail silently (and
retry later) as long as you don't use the task.

It should work the way you are doing it, i.e. as long as you don't run
the target (or one that depends on it) that includes your aspectj
task, you don't need the required libraries in your path.

If it doesn't work, please give us a little more information (build
file snippet and "ant -verbose" output would be a good start).

Stefan

Reply via email to