E.9 ReplaceTokens

The ReplaceTokens filter will replace certain tokens. Tokens are strings enclosed in special characters. If you want to replace ##BCHOME## by the path to the directory set in the environment variable BCHOME, you could do the following:

<property environment="env" />

  <replacetokens begintoken="##" endtoken="##">
    <token key="BCHOME" value="${env.BCHOME}" />

Table E.9:  Attributes for the <replacetokens> tag

begintokenStringThe string that marks the beginning of a token.@No
endtokenStringThe string that marks the end of a token.@No

E.9.1 Nested tags

The ReplaceTokens filter must contain one or more token tags. These must have a key and a value attribute.