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]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to