ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
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 <Jane.Fraser@vodafone-us.com> 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
suggests,

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

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.

Stefan

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message