ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: Replace Task "propertyFile" syntax
Date Mon, 03 Jun 2002 22:10:47 GMT
--- Max Clark <max.clark@ussearch.com> wrote:
> Could anyone forward me an example "replacefilterfile" and
> "propertyFile" with the proper syntax for the files.

$ cat replaceme.txt
This foo is totally baz.
$ cat foo.properties
foo=bar
$ cat repl.properties
baz=blat

  <target name="r">
    <replace file="replaceme.txt" propertyfile="foo.properties"
             replacefilterfile="repl.properties">
      <replacefilter property="foo" token="foo"/>
    </replace>
  </target>

$ ant r
...
$ cat replaceme.txt
This bar is totally blat.

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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


Mime
View raw message