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-unsubscr...@ant.apache.org
> For additional commands, e-mail: user-h...@ant.apache.org
> 


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

Reply via email to