ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: can a target be used twice in a target
Date Tue, 23 Apr 2002 06:11:06 GMT
On Mon, 22 Apr 2002, Jane Fraser <> wrote:

> I'm try to use a target more than once, but it doesn't seem to run
> the second time

If it is part of the dependency graph for a target, each target will
be run at most once - so it doesn't change anything if you put the
name of a target into depends more than once.

If you are sure that you really want to do what your target definition

<target name="jar" depends="cleanup, compile, package">
  <antcall target="cleanup" />

would do the trick.

But I'd suggest rethinking your design, why does your jar target
guarantee that cleanup has been run after it has finished.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message