ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: conditional <uptodate>?
Date Thu, 02 Dec 2004 16:24:22 GMT
On Thu, 02 Dec 2004, Gili <junk@bbs.darktech.org> wrote:

> 	Ok, that I understand but there is the further problem that
> 	I need the <uptodate> to execute before target B but after
> 	target A.  Adding it to the "depends" listing of B will not
> 	help because as the docs specify "depends" is only invoked
> 	if unless is false and in my case I want the <uptodate> to
> 	be invoked *before* evaluating ódependsó.

Unless I'm misunderstanding your requirements, you want

<target name="check-A">
  <uptodate property="A.uptodate" .../>
</target>
<target name="A" depends="check-A" unless="A.uptodate">
  ...
</target>
<target name="check-B" depends="A">
  <uptodate property="B.uptodate" .../>
</target>
<target name="B" depends="check-B" unless="B.uptodate">
  ...
</target>

Stefan

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


Mime
View raw message