Trimming leading spaces in properties files would break
line-continuation. However, the same tactic can easily be handled by
just using a replaceregex filter instead of a trim filter, like
<replaceregex pattern="\s+$"/>
Brian Stephenson wrote:
> I believe something like this should work:
>
> <loadproperties srcFile="file.properties">
> <filterchain>
> <tokenfilter>
> <trim/>
> </tokenfilter>
> </filterchain>
> </loadproperties>
>
> Trim does trim the leading whitespaces as well as trailing
> whitespaces, but that should not matter while reading a property file.
>
> Brian
>
> On Jan 26, 2009, at 9:57 AM, Stefano Nichele wrote:
>
>> Hi All,
>> is there a simple way to remove trailing whitespaces/tabs reading
>> properties files ?
>>
>> Thanks in advance
>> ste
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]