The macro trims trailing blanks from the value of the named property.

Attributes

The following table describes the macro specific attributes for the macro:

Macro Specific Attributes
Attribute Description Required
property The name of the property whose value is to be trimmed. Yes

Notes

None

Examples

<property name="testProperty" value="Trim    "/>

<Trim property="testProperty"/>
<echo>${testProperty}</echo>

Result:
     [echo] Trim