ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tharp, Joshua L, SOLGV" <jlth...@att.com>
Subject RE: How to avoid multiple <target unless= >
Date Mon, 02 Jun 2003 13:46:04 GMT
The way I have done it is to have a dependency-checking target that
defines some property if all of the conditions are met (with the
condition task).

<target name="check.for.uptodate">
    <condition property="uptodate">
        ...
    </condition>
</target>

<target name="exec" depends="check.for.uptodate" unless="uptodate">
    ...
</target>

I don't know if this qualifies as a "way to avoid define [sic] multiple
<target>s."

Josh

-----Original Message-----
From: Thai Thanh Ha [mailto:thaiha@psv.com.vn] 
Sent: Friday, May 30, 2003 1:53 AM
To: 'user@ant.apache.org'
Subject: How to avoid multiple <target unless= >


 Hi all,

 In my build file, I want to call <java> tasks only when some files are
not
uptodate. I know that I can call <uptodate> tasks to check  and define
multiple targets (using <target unless="condition">). Is there any other
way
to avoid define multiple <target>s? 

 Thanks,
 Thai

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


Mime
View raw message