You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Md. Jahidul Hasan" <ja...@bjitgroup.com> on 2008/03/28 09:19:33 UTC
how to change property value in config file ?
Hi
Is there any way to handle configuration files with ant ? I have a config
file which contains some properties with correspond values.
property 1= value 1
property 2= value 2
property 3= value 3
I want to change the values by searching the property name.
BR
Hasan
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: how to change property value in config file ?
Posted by David Weintraub <qa...@gmail.com>.
Take a gander at the <replace> task.
On Fri, Mar 28, 2008 at 4:19 AM, Md. Jahidul Hasan
<ja...@bjitgroup.com> wrote:
> Hi
>
> Is there any way to handle configuration files with ant ? I have a config
> file which contains some properties with correspond values.
>
> property 1= value 1
> property 2= value 2
> property 3= value 3
>
> I want to change the values by searching the property name.
>
> BR
> Hasan
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
--
--
David Weintraub
qazwart@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: how to change property value in config file ?
Posted by Gilles Scokart <gs...@gmail.com>.
http://ant.apache.org/manual/OptionalTasks/propertyfile.html
Isn't what you are searching for?
On 28/03/2008, Md. Jahidul Hasan <ja...@bjitgroup.com> wrote:
> Hi
>
> Is there any way to handle configuration files with ant ? I have a config
> file which contains some properties with correspond values.
>
> property 1= value 1
> property 2= value 2
> property 3= value 3
>
> I want to change the values by searching the property name.
>
> BR
> Hasan
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
--
Gilles Scokart
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org