ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Max Clark <max.cl...@ussearch.com>
Subject RE: Replace Task "propertyFile" syntax
Date Mon, 03 Jun 2002 23:08:54 GMT
So are the files mutually exclusive? It seems that I could accomplish
everything that I need using the "replacefilterfile". Where would a user
want to use one vs. the other?

Thanks,
Max

-----Original Message-----
From: Diane Holt [mailto:holtdl@yahoo.com]
Sent: Monday, June 03, 2002 3:11 PM
To: Ant Users List
Subject: Re: Replace Task "propertyFile" syntax


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

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