ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <>
Subject Re: Skipping a task when <condition>?
Date Mon, 22 Jan 2001 20:09:34 GMT
The <copy> task should only copy files that have source-files newer than
their destination-files.


--- William Lee <> wrote:
> What I realized when using Ant is that rerunning some tasks may take a
> long time, even though the tasks may not be doing anything different,
> like copying the 10592 files to a different directory.  What I would
> like to do is to write something that detects that the files are already
> copied, like the existance of the directory, and then decide I can skip
> the copying.  What is the proper way to accomplish this in Ant?  It
> would be ideal if there is an optional "condition" for running each
> task, when the condition is met, then the task would be skipped. 
> Anyway, any suggestions on how to do this is very welcomed.
> Thanks,
> Will


Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.

View raw message