ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lev Zak <lev....@schema.com>
Subject RE: How to change the string value into some source file?
Date Tue, 05 Feb 2002 16:00:21 GMT
Thank you for the explanation. I found the correct <filterset> task's syntax
for my config-file. But I thing the <propertyfile> task is more useful for
me. But if I want to replace string includes ":" I receive "\:". It means I
could not use this way for update the path. This behavior described in
manual too, bat may be the solution already exists?
Lev.

> -----Original Message-----
> From: Stefan Bodewig [mailto:bodewig@apache.org]
> Sent: Tuesday, February 05, 2002 8:36 AM
> To: ant-user@jakarta.apache.org
> Subject: Re: How to change the string value into some source file?
> 
> 
> On Mon, 4 Feb 2002, Lev Zak <lev.zak@schema.com> wrote:
> 
> > 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.
> 
> filtered copy would require you to delimit the part you want to
> replace with tokens, something like
> 
> ExpressoConfigDir      = d:/@development@/config/expresso/config
> 
> and then define a filter that replaces development with integration in
> the copy task.
> 
> The easiest solution (as this is a property file) probably really is
> to use the optional <propertyfile> task, but <replace> should do the
> trick as well.
> 
> Stefan
> 
> --
> 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