ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
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.

Diane

--- William Lee <wlee@sendmail.com> 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


=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices. 
http://auctions.yahoo.com/

Mime
View raw message