You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Rohnny Moland <ro...@sensewave.com> on 2005/04/04 14:36:57 UTC
Modifying a property file
Hello,
I am looking for an alternative way to modify a property file, without using
the optional propertyfile task, and just use core functionality...
Tried with replace, but cant replace the whole line. Eg.
fo.name = value not known
..and if I use "fo.name" as a token, I cant set the right value for the
property. The value is not known so I cant use this as a token.
Thanks,
--
Rohnny
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Modifying a property file
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Apr 4, 2005, at 5:20 PM, Rohnny Moland wrote:
> On Monday 04 April 2005 16:08, Erik Hatcher wrote:
>> For the record, <propertyfile> is as built-in as any other core tasks.
>> I recommend you consider using it.
>
> Thanks for your answer, Erik. I use <propertyfile> in ant 1.6.2 and
> here it
> seems like it is an optional task. Thats the reason why I dont want to
> use
> it. PropertyFile.class is not located in ant.jar, and I dont want any
> more
> dependencies.
It's in ant-nodeps.jar. If you're using a standard Ant installation,
it's already available and built right in.
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Modifying a property file
Posted by Rohnny Moland <ro...@sensewave.com>.
On Monday 04 April 2005 16:08, Erik Hatcher wrote:
> For the record, <propertyfile> is as built-in as any other core tasks.
> I recommend you consider using it.
Thanks for your answer, Erik. I use <propertyfile> in ant 1.6.2 and here it
seems like it is an optional task. Thats the reason why I dont want to use
it. PropertyFile.class is not located in ant.jar, and I dont want any more
dependencies.
Best regards,
--
Rohnny
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Modifying a property file
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
For the record, <propertyfile> is as built-in as any other core tasks.
I recommend you consider using it.
Erik
On Apr 4, 2005, at 8:36 AM, Rohnny Moland wrote:
> Hello,
>
> I am looking for an alternative way to modify a property file, without
> using
> the optional propertyfile task, and just use core functionality...
>
> Tried with replace, but cant replace the whole line. Eg.
>
> fo.name = value not known
>
> ..and if I use "fo.name" as a token, I cant set the right value for the
> property. The value is not known so I cant use this as a token.
>
>
>
> Thanks,
>
> --
> Rohnny
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org