ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Mailhot <Nicolas.Mail...@laPoste.net>
Subject Re: AW: File list/Dir list problem
Date Thu, 08 Jul 2004 12:48:23 GMT
Le jeu, 08/07/2004 à 14:29 +0200, Jan.Materne@rzf.fin-nrw.de a écrit :
> I am not sure what you want to have. Maybe a small example would help.

Ok. Suppose we have the following trees

--- Tree1
root1/a/a.1
root1/a/a.2
root1/a/a.3
root1/b/b.1

--- Tree2
root2/a/a.4
root2/a/a.5
root2/b/b.5

--- Tree3
root3/b/b.2
root3/b/b.3
root3/b/b.4
root3/c/c.1
root3/c/c.2

Which will be merged into:
/a/a.1
/a/a.2
/a/a.3
/a/a.4
/a/a.5
/b/b.1
/b/b.2
/b/b.3
/b/b.4
/b/b.5
/c/c.1
/c/c.2

If we suppose Tree1 and Tree2 are part of set1 and Tree3 of set2, I'll
need to generate the following lists:

--- set1 list
a
b
a/a.1
a/a.2
a/a.3
a/a.4
a/a.5
b/b.1
b/b.5

--- set2 list
b
c
b/b.2
b/b.3
b/b.4
c/c.1
c/c.2

(Very simplified example, in reality you have more than three source
trees, deep file hierarchy and thousands of files. And all source trees
are not always copied directly to the root but to subdirs depending on
other rules, etc, etc)

> But that sounds that this could be helpful:
> * <property refid="fs"><echo file/>
> * <pathconvert>

That's how the file lists are generated;)

Cheers,

-- 
Nicolas Mailhot

Mime
View raw message