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="[EMAIL PROTECTED]" 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="[EMAIL PROTECTED]" dest="${destination}" overwrite="true"/>
          </sequential>
        </for>

Just want to unziiping to be done in parallel to save time.


*/"Scot P. Floess" <[EMAIL PROTECTED]>/* 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: [EMAIL PROTECTED]
    For additional commands, e-mail: [EMAIL PROTECTED]


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

Reply via email to