Replace Tokens

Replace tokens in files using properties.
Table 1. Input properties for the Replace Tokens step
Name Type Description Required
Directory Offset String The directory relative to the current working directory which contains the files to operate on. No
Include Files String Comma- or space-separated list of patterns of files that must be included. Yes
Exclude Files String Comma- or space-separated list of patterns of files that must be excluded. No
Start Token Delimiter String The start delimiter character used to identify tokens. No
End Token Delimiter String The end delimiter character used to identify tokens. No
Property Prefix String Specify a prefix that would be used to determine which properties will be included in token replacement. Leave blank to use all properties. No
Property File Name String The name of the file used to store the replacement name/value pairs. You can use an existing file. If this file does not exist it is created by the plugin and then removed upon completion. Yes
Property List String Specify a value here if you want the step to try and use existing property names as tokens to replace in the target files.Eg: ${p:environment/allProperties} would take all component environment properties and use the property name as the token and the value as the replacement. Similarly ${p:component/allProperties},${p:environment/allProperties} will take all component and component environment properties and use them as token replacement. Keep in mind that the delimiter and prefix settings above apply so if you have @ for start and end token delimiters and a property called token1 then the step will search for @token1@ to replace. No
Explicit Tokens String Specify a new line separated list of explicit tokens to replace in the form of token->value. Eg: mytoken->new_value will look for the mytoken string in all the files and replace it with new_value. The Tokens used in this field are not affected by the delimited or prefix options above so if you want to replace @token@ with new_value you need to specify @token@->new_value in this box. If you specified a value in Property List above the explicit tokens will be added as additional values to replace and will override any properties that have the same name. You cannot use regular expressions here. No

Feedback