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
