ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Lalevée <>
Subject Loading a list of filtered files
Date Tue, 13 Jul 2010 15:12:24 GMT
Since I discovered the "powerfullness" of resource and resource collection in 
Ant, I have been able all sort of manipulation on files whithout to have 
tempory files. Until.

I would like to have in one ant property some infos extracted from sevral ivy 
files. Basically I would want to write this:

<loadresource property="@{property}">
        <fileset dir="${fetchdir}" includes="ivy-*.xml">
                    <filetokenizer />
                    <replaceregex pattern="^.*&lt;dependencies&gt;
(.*)&lt;/dependencies&gt;.*$$" replace="&lt;!-- ${} 
dependencies --&gt;\1" flags="si" />

Unfortunaltely I cannot apply a filterchain on a fileset.

Maybe there are some other way to do that with resources ?
Or should I use copy and have some temporary files ?


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

View raw message