ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kiarna Boyd" <kia...@hotmail.com>
Subject AW: foreach directory copy question
Date Fri, 14 Mar 2003 16:01:32 GMT

Thank you very much Jan. I appreciate your help!

You suggested I try something like:


<foreach target="newversion" param="thisEnv">
    <path>
        <dirset dir="theDirectoryWhereYouWantToDoThe_ls_" />
    </path>
</foreach>




In order to have the foreach get a new directory each time what would I have 
to do?
I thought I would have to build the foreach to reference a text list.

<foreach list="${dev.env}">
                delimiter="${br}">
                target="newversion">
                param="thisEnv">

  </foreach>



  <target name="newversion">
        <echo message="environment: ${thisEnv}"/>
        <copy todir="${builddir}/${thisEnv}">
            <fileset dir="${masterdir}"/>
        </copy>
            </target>


Thanks again!

Kiarna


_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


Mime
View raw message