Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

AW: problem with copy task

Jan Materne

2008-03-12


Author LoginPost Reply
<copy> uses a timestamp check. For unknown reasons (?) your target file is newer than the source file.
You could use overwrite=true for ignoring the timestamps and nest a <modified/> selector for selecting
only files which contents changed.


Jan

> -----Ursprüngliche Nachricht-----
> Von: Md. Jahidul Hasan [mailto:jahidul.hasan@(protected)]
> Gesendet: Mittwoch, 12. März 2008 04:51
> An: user@(protected)
> Betreff: problem with copy task
>
> Hi
> I am trying to copy some files and if the file exists with different
> content(in the destination area) then copy task doesn't
> upload the file
> again. I don't want to use the overwrite parameter because
> there are lots
> of files and I don't want to overwrite all the files again.
> Just want to
> know how I can use the copy task to copy the file if the file
> content are
> not same.
>
> --------------------------
> With best regards
> Hasan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.