Java Mailing List Archive

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

Home » Ant Developers List »

Re: AW: Tasks in parallel

Steve Loughran

2008-02-28

Replies: Find Java Web Hosting

Author LoginPost Reply
Jan.Materne@(protected):
>>> Consider the scenario where the file transfer takes a long time:
>>> would it be a good idea to have the copy/scp/ftp tasks create
>>> different threads for each file?
>> There is no built-in support for anything like this in Ant, no.
>>
>> I could imagine that we'd add a patch that enabled optional (on
>> user-demand) parallel behavior for these tasks. Personally I see the
>> point for the network transfer kind of tasks, but wouldn't want it on
>> copy, but that may be my experience with a very slow disk in my
>> notebook.
>
> At first step for improving performance I would think about skipping
> things.
> Why to try to upload a lot of files which havent changed and are already
> there?
> In that case:
>  <scp><fileset><modified>

<exec> rsync.

rsync is a fantastic way of upload directory trees full of content.

Its not enough to upload separate files in separate threads, or even
upload changed files, you only want to upload the changed bits of the
changed files.


--
Steve Loughran            http://www.1060.org/blogxter/publish/5
Author: Ant in Action       http://antbook.org/

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

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