BCI Nodes - Replace
<Replace> - In BBj 11.0 and higher, this node searches then replaces text in a file. The parent must be a <File> node.
Attribute |
Description |
Possible Values |
Default Value |
search |
The text to search for. |
any string |
none |
replace |
The text that will replace the search text. |
any string or variable |
none |
Common Attribute |
Description |
Possible Values |
Default Value |
bit |
Specifies the Java bit level for which the BCI node will be active. |
0 = All bit levels In BBj 19.21 and later, the following values may also be used: |
0 = All bit levels |
osbit |
Specifies the OS bit level for which the BCI node will be active. |
0 = All bit levels In BBj 19.21 and later, the following values may also be used: |
0 = All bit levels |
portid |
Specifies the port ID for which the BCI node will be active. Multiple port IDs are comma separated. |
See www.basis.cloud/availability for possible port IDs. |
All port IDs |
Example
<File name="unix/bin/.envsetup" installdir="bin" portid="2145,6146,2169,2179" permission="r+wx+" uninstall="never">
<Keep variable="$CustomDefs" begin="$BeginCustomDefs" end="$EndCustomDefs"/>
<Replace search="$customdefs$" replace="$CustomDefs"/>
</File>