You can use <propertyfile> (see optional tasks in the documentation) to edit
property files.

Filterset will work fine if you delimit things appropriately.  Can you show
us an example of it not working properly?

    Erik

p.s. There is a darn slick task in the latest release version of XDoclet
that sort of works like filtered copies, except that it uses different
syntax for the "tokens" and automatically uses all of Ant's properties as
available substitutions.

----- Original Message -----
From: <Provencher>; "Samuel" <[EMAIL PROTECTED]>
To: "'Ant Users List'" <[EMAIL PROTECTED]>
Sent: Monday, February 04, 2002 4:31 PM
Subject: RE: How to change the string value into some source file?


> One way I've done in the past is to implement a velocity task and handle
it
> that way.
>
> -----Original Message-----
> From: Lev Zak [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 04, 2002 4:04 PM
> To: 'Ant Users List'
> Subject: How to change the string value into some source file?
>
>
> Hello,
> I use ant 1.4.1 under Windows 2000
> I would like to change the specific string in my config file
> config.properties
> I tried to perform it through <filterset> task into <copy> task without
> success. It is not clear enough in the manual but I thing that is what I
> want.
> My config file config.properties include the following string:
>
> ExpressoConfigDir      = d:/development/config/expresso/config
>
> I would like to change this string to the following:
>
> ExpressoConfigDir      = d:/integration/config/expresso/config
>
> How can I do it through ant?
> Regards.
> Lev.
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to