ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scot P. Floess" <flo...@mindspring.com>
Subject Re: How to parallelize to unzipping done by Ant-Contrib's for-loops?
Date Mon, 28 Aug 2006 12:00:13 GMT
Hessu:

<for> allows for parallel processing (as does <for-each>)...  By default 
if the parallel attribute is not set, it is false...  I think all you 
need to do is this:

<for list=zyx.ziptags param="ziptag" parallel="true">
          <sequential>
            <echo>Doing @{ziptag}</echo>
            <unzip src="${src_dir}\${platform}_${version}_@{ziptag}.zip" 
dest="${destination}"                 overwrite="true"/>
          </sequential>
        </for>

Note the parallel attribute in the <for> task...

Hope that helps...

Scot

Hessu X wrote:
> Ok,
>
> I have a list of zip files and I want to isolate this to be a property 
> (let's say something like zyx.ziptags-actually containing only 
> non-version specific strings ).
> And I generate real unzipping like this:
>
> <for list=zyx.ziptags param="ziptag">
>           <sequential>
>             <echo>Doing @{ziptag}</echo>
>             <unzip 
> src="${src_dir}\${platform}_${version}_@{ziptag}.zip" 
> dest="${destination}"                 overwrite="true"/>
>           </sequential>
>         </for>
>
> Just want to unziiping to be done in parallel to save time.
>
>
> */"Scot P. Floess" <floess@mindspring.com>/* wrote:
>
>     Can you better word your question? I do not understand what it is you
>     are asking...
>
>     Hessu X wrote:
>     > Hi,
>     >
>     > How to parallelize to unzipping done by Ant-Contrib's for-loops?
>     >
>     >
>     >
>     >
>     > ---------------------------------
>     > All-new Yahoo! Mail - Fire up a more powerful email and get
>     things done faster.
>     >
>
>     -- 
>     Scot P. Floess
>     27 Lake Royale
>     Louisburg, NC 27549
>
>     252-478-8087 (Home)
>     919-754-4592 (Work)
>
>     Chief Architect JPlate http://sourceforge.net/projects/jplate
>     Chief Architect JavaPIM http://sourceforge.net/projects/javapim
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>     For additional commands, e-mail: user-help@ant.apache.org
>
>
> ------------------------------------------------------------------------
> How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call 
> rates. 
> <http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com>

-- 
Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate  http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message