ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kiarna Boyd" <>
Subject Re: foreach directory copy question
Date Tue, 25 Mar 2003 17:29:16 GMT
Hi Jan,

(sorry for duplicates but I wanted you to get my THANK YOU!!!!)

I finally figured out what you were trying to explain.
I was confused about the logical relationship between the foreach task and 
the overall target task.

So I applied your suggestion:

<target name="newversion" >
<foreach target="test" param="thisEnv">
                <dirset dir="${builddir}/" />
<target name="test" >


It works sweet! I just have to figure out how to limit the dirset output to 
top level directories rather than including all the sub dirs.

Thanks again for all of your help. I really appreciate it!


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_" />

Help STOP SPAM with the new MSN 8 and get 2 months FREE*

View raw message