ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: How to change the string value into some source file?
Date Mon, 04 Feb 2002 22:39:25 GMT
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" <sprovencher@telegea.com>
To: "'Ant Users List'" <ant-user@jakarta.apache.org>
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:lev.zak@schema.com]
> 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: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>
>
>


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