You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Francis GALIEGUE <fg...@one2team.com> on 2009/08/20 11:04:55 UTC

How to remove a property from a file

Hello everyone,

Ant's <propertyfile> task allows to update a file's properties, but
how do you _remove_ a property from a file?

The problem is that the number and name of properties in the file is
arbitrary... And while I could use external tools for it, I'd rather
not. Is there a "pure" ant solution?

-- 

Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 683 877 875
Tel : +33 (0) 178 945 552
fge@one2team.com
40 avenue Raymond Poincaré
75116 Paris

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


AW: How to remove a property from a file

Posted by Ja...@rzf.fin-nrw.de.
>> I added that as <propertyfile><entry operation="del"/> in revision
>> 806154.
>>
>
>I don't know the release schedule for Ant. What version will this
>revision be available into, and when can I expect it?


Good news: Stefan has volunteered to be the release manager and he is
working
on that. So I would expect a release (with a very large safety belt)
during 
the next 3months.


Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: How to remove a property from a file

Posted by Francis GALIEGUE <fg...@one2team.com>.
On Thu, Aug 20, 2009 at 15:04, <Ja...@rzf.fin-nrw.de> wrote:
[...]
>
> I added that as <propertyfile><entry operation="del"/> in revision
> 806154.
>

I don't know the release schedule for Ant. What version will this
revision be available into, and when can I expect it?

Thanks in advance,
-- 

Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 683 877 875
Tel : +33 (0) 178 945 552
fge@one2team.com
40 avenue Raymond Poincaré
75116 Paris

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


AW: How to remove a property from a file

Posted by Ja...@rzf.fin-nrw.de.
>> Ant's <propertyfile> task allows to update a file's properties, but
>> how do you _remove_ a property from a file?
>> 
>> The problem is that the number and name of properties in the file is
>> arbitrary... And while I could use external tools for it, I'd rather
>> not. Is there a "pure" ant solution?
>
>Using replaceregexp?


I added that as <propertyfile><entry operation="del"/> in revision
806154.


Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: How to remove a property from a file

Posted by Ognjen Blagojevic <og...@rcub.bg.ac.rs>.
Francis GALIEGUE wrote:
> Hello everyone,
> 
> Ant's <propertyfile> task allows to update a file's properties, but
> how do you _remove_ a property from a file?
> 
> The problem is that the number and name of properties in the file is
> arbitrary... And while I could use external tools for it, I'd rather
> not. Is there a "pure" ant solution?

Using replaceregexp?

-Ognjen

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org