ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Pelz Sherman <>
Subject Re: AW: calling targets from macrodefs
Date Thu, 24 Feb 2005 08:35:08 GMT
Thanks, Jan. antcall is exactly what I needed!
- Michael wrote:
You can call other targets - simply with <antcall>.
Just replace <foo/> with <antcall target="foo"/> and that should work.
Or another design:
Place the stuff from <target name="foo"> in a <macrodef name=""> and
you could call that <> from
the target "foo" and from inside the macrodef.

-----Ursprüngliche Nachricht-----
Von: Michael Pelz Sherman []
Gesendet am: Donnerstag, 24. Februar 2005 04:47
Betreff: calling targets from macrodefs


Please excuse the somewhat newbie-ish question, but is it possible to call
an ant target from within a macrodef?

The attached file contains a simplified example.

When run, I get the following error:

"Ant could not find the task or a class this task relies upon...."

Many Thanks!
- Michael

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message