ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francis Galiegue <...@one2team.com>
Subject Re: AW: Feature requests: include ant-contrib, unordered file sets, "cp"-like copy task
Date Tue, 02 Dec 2008 16:39:13 GMT
Le mardi 02 décembre 2008, Knuplesch, Juergen a écrit :
> 
> Hello,
> 
[...]
> 
> 2.You want ordered filesets not unordered filsets, but it should be the user 
> who defines the order! I sometimes had the same problem. The problem is, 
> that filsets do not guarantee any order. 

Well, I figured out that if you passed a file as includesfile with, say, f3, 
f1 and f2 in this order, it would stay this way... But it doesn't. Instead, I 
get f1, f2 and f3.

> I think filelists could help, but I never really tried.
> I solved it by putting several filsets in the order I want.
> 

I have tried filelists, but the concat task doesn't support a nested 
filelist :( Haven't tried ant 1.7 though. And I must use the file  list 
provided, since the list (and the order) may change. Right now, I use a shell 
script.

> 
> 3.I did not try this, but it seems not too difficult, perhaps I dont know 
> enough about cp. 
> What about
> 
>     <copy todir="dstdir"> 
>       <fileset>
>         <include name="**/src/java/**"/>
>       </fileset>
>     </copy>
> 

I'll try that and report.

Thanks!
-- 
Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 6 83 87 78 75
Tel : +33 (0) 1 78 94 55 52
fge@one2team.com
40 avenue Raymond Poincaré
75116 Paris

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message