ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@apache.org>
Subject Re: depends vs. antcall
Date Thu, 28 Jun 2001 13:47:53 GMT
On Thu, 28 Jun 2001 23:38, Kyle Adams wrote:
> 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?

Depends is far superior. It doesn't reparse the build files and there is no 
anomalies.


Cheers,

Pete

*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |
*-----------------------------------------------------*

Mime
View raw message