Java Mailing List Archive

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

Home » Ant Developers List »

Tasks in parallel

Vijay Aravamudhan

2008-02-26

Replies: Find Java Web Hosting

Author LoginPost Reply
hi,
I know that there is already a parallel task. But...

We have a build file which goes something like this:

<fileset refid="foo">
  <include..../>
</fileset>
...
<copy todir="blah">
  <fileset id="foo"/>
</copy>

(I have omitted the unnecessary bits for this example)

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? I know I can separate the fileset into individual
files and then create multiple copy commands that are wrapped inside a
parallel task. But that defeats the purpose of defining the fileset in
the first place. What do you think?

thanks,
Vijay

---------------------------------------------------------------------
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.