ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marius Scurtescu <mar...@multiactive.com>
Subject Re: Time-based dependencies
Date Wed, 12 Jul 2000 19:25:05 GMT
Phil Hanna wrote:
[...]
> Now that I think of it, perhaps this could be accomplished by a custom task "older" similar
to "available":
> 
> <target name="init">
>    <older first="foo.bat" second="foo.zip" property="bat.is.older"/>
> </target>
> 
> <target name="unzip" if="bat.is.older" depends="init">
>   ... unzip foo.zip
> </target>
> 
> The implementation should set the property to true if the first object does not exist
or if its timestamp is less than the timestamp of the second object.

I posted to this list such a task, I called it "obsolete", a few days
ago. I does exactly that. If you cannot retrieve it then let me know
and I will email you a copy.

Marius

Mime
View raw message