ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <>
Subject Re: ClearCase integration?
Date Mon, 02 Oct 2000 23:38:32 GMT
--- Barrie Treloar <> wrote:
> We also do the same with <exec>.
> One thing to remember is that once you checkout your file its bound to
> be newer than anything you want to compare timestamps for.
> For example we want to version control our *.jar files once built.  So
> we build the .jar file in a temp dir, checkout the version controlled
> jar file and try to use the <copyfile> task.  
> However <copyfile> checks the timestamp to see if the copy is necessary.
> In our case this check is not correct and there is no force attribute
> to <copyfile> like there is for <copydir>.  
> I have not got around to updating <copyfile> and instead use <delete>
> to delete the checked-out version of the file so <copyfile> works.

Couldn't you just use <rename> instead of <delete> and <copyfile>?  If you
give the new jar as the src and the old jar as the dest, the old jar will
be removed before the new one is "renamed" (ie., moved) to it.



Do You Yahoo!?
Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!

View raw message