ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject AW: foreach directory copy question
Date Mon, 17 Mar 2003 06:45:57 GMT
Have you tried the both (yours and mine)?

You can use a 'test' target
	<target name="test">
So you can see, what the foreach will exactly serve.

I haven´t tried the dirset, but regarding the fileset behaviour I think
my foreach version serves a listing of
You can use includes/excludes - I think.

But your script seems to be ok. Once again: have you tried it?

Jan Matèrne

-----Ursprüngliche Nachricht-----
Von: Kiarna Boyd []
Gesendet am: Freitag, 14. März 2003 17:02
Betreff: AW: foreach directory copy question 

Thank you very much Jan. I appreciate your help!

You suggested I try something like:

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

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


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

Thanks again!


The new MSN 8: smart spam protection and 2 months FREE*

To unsubscribe, e-mail:
For additional commands, e-mail:

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