ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Lalevée <nicolas.lale...@hibnet.org>
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}">
    <concat>
        <fileset dir="${fetchdir}" includes="ivy-*.xml">
            <filterchain>
                <tokenfilter>
                    <filetokenizer />
                    <replaceregex pattern="^.*&lt;dependencies&gt;
(.*)&lt;/dependencies&gt;.*$$" replace="&lt;!-- ${module.name} 
dependencies --&gt;\1" flags="si" />
                </tokenfilter>
            </filterchain>
        </fileset>
    </concat>
</loadresource>

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 ?

Nicolas

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


Mime
View raw message