ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kyle Adams" <kad...@gfs.com>
Subject depends vs. antcall
Date Thu, 28 Jun 2001 13:38:57 GMT
I've seen both the depends attribute of the target tag, and the antcall task used in very similar
methods - to call internal targets the comprise an external target.  For example:

<target name="all" depends="init, build, deploy, clean">
</target>

vs.

<target name="all">
  <antcall target="init" />
  <antcall target="build" />
  <antcall target="deploy" />
  <antcall target="clean" />
</target>

I've also seen this for the deploy target (to make jar, war, and ear files), for the build
target (to make directories, compile).  My question - which is the better way of doing this?

Kyle


Mime
View raw message