You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Phil Hourihane <ho...@yahoo.co.uk> on 2005/09/01 00:12:48 UTC
enhancement for PropertyFile, have a patch
Hi folks,
I hope I am getting the etiquette right for this; I am
a new body on the list.
The PropertyFile (optional) task allows a script to
alter an existing properties file, but all comments
and layout are lost. This doesn't get a mention in
bugzilla. I have an enhancement which retains layout
and comments when writing a properties file, with
accompanying tests.
I have a patch for the affected files, and there are a
few new files (util class, test class, and test data)
as well.
Do the group want the enhancement? Or more detail from
me? Shall I post the patch and new files? Any feedback
is welcome.
Philip Hourihane
___________________________________________________________
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: enhancement for PropertyFile, have a patch
Posted by Antoine Levy-Lambert <an...@gmx.de>.
Hello Phil,
I wonder whether, instead of patching PropertyFile, you should not study
how the <filterchain/> framework works and implement the functionalitiy
of propertyfile
as a filter. Then it should be possible to change the implementation of
propertyfile to make it use filters.
To my opinion, all tasks which we have which are manipulating text files
should be rewritten around filters. This would avoid code duplication.
And make the functionality of property file available on the fly.
Cheers,
Antoine
Phil Hourihane wrote:
>Hi folks,
>
>I hope I am getting the etiquette right for this; I am
>a new body on the list.
>
>The PropertyFile (optional) task allows a script to
>alter an existing properties file, but all comments
>and layout are lost. This doesn't get a mention in
>bugzilla. I have an enhancement which retains layout
>and comments when writing a properties file, with
>accompanying tests.
>
>I have a patch for the affected files, and there are a
>few new files (util class, test class, and test data)
>as well.
>
>Do the group want the enhancement? Or more detail from
>me? Shall I post the patch and new files? Any feedback
>is welcome.
>
>Philip Hourihane
>
>
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org