You can do this with the <copy> task via the <filter>:

A good example is given on this page:

<http://ant.apache.org/manual/CoreTasks/copy.html>

Look for the text "*Copy a set of files to a directory, replacing
@ti...@with Foo Bar in all files."

*You can also look here: http://ant.apache.org/manual/index.html at the
<filter> task.

And, take a look over here too:

<http://ant.apache.org/manual/CoreTypes/filterset.html>

This one shows the concept of a "filterset" and how it works with the <copy>
task. It also has some excellent examples.

2009/7/22 Júlio Cesar Bueno Cotta <[email protected]>

> Hello there,
> I am new over here and I need some help.
> There is a script that replace variables in the files.
> And I am trying to write a ant script to find in the replaced files ( into
> a
> folder like workspace/web-inf/ ) variables witch were not replaced..
> Someone can help me?
> Is there some task to do that?
>
> I am sorry if I am not clear..my English is not pretty good.
> Thanks all.
>
> --
>  Júlio Cesar Bueno Cotta
> Graduando em ciência da computação
>   Universidade Federal de Viçosa
>



-- 
David Weintraub
[email protected]

Reply via email to