ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@gmail.com>
Subject Re: Loading a list of filtered files
Date Tue, 13 Jul 2010 15:24:37 GMT

On Jul 13, 2010, at 10:12 AM, Nicolas Lalevée wrote:

> 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.
> 

Why don't you apply the filterchain to the concat?  -Matt

> 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
> 


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


Mime
View raw message