ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Vernum <Tim.Ver...@macquarie.com.au>
Subject RE: Order of Depends
Date Wed, 21 Feb 2001 09:59:40 GMT

> Tim's workaround will always work, but it's really just a "workaround"
> because sometimes I do not want dependency-chains! Look at this one:
> 
> Targets:
> cleanclassesdir
> compile
> buildall
> 
> I do not want <compile> to depend on <cleanclassesdir> but when I 
> execute <buildall> then first <cleanclassesdir> and then <compile>
> shlould be executed! 

I agree, but there are solutions
One solution is to add a new target than is "compileclean"

<target name="compileclean" depends="cleanclassesdir">
	<antcall target="compile">
</target>

<target buildall depends="compileclean">
	...
</target>

Mime
View raw message