BCI Nodes - Keep


<Keep> - In BBj 11.0 and higher, this node searches for beginning and ending tags in file and stores the text found in between the tags in a variable. Can be used in conjunction with <Replace> node to keep some lines in a file but replace others. The parent node must be a <File> node.


Attribute

Description

Possible Values

Default Value

variable

The name of the variable in which to store the resultant lines.

name of variable

none

begin

The beginning tag to search the file for.

any string

none

end

The ending tag to search the file for.

any string

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
32 = 32-bit level
64 = 64-bit level

In BBj 19.21 and later, the following values may also be used:
1 = 32-bit level
2 = 64-bit level

0 = All bit levels

osbit

Specifies the OS bit level for which the BCI node will be active.

0 = All bit levels
32 = 32-bit level
64 = 64-bit level

In BBj 19.21 and later, the following values may also be used:
1 = 32-bit level
2 = 64-bit level

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>


BCI Nodes Listing

<BBExec>

<CustomAction>

<Directory>

<Exec>

<Feature>

<File>

<Jar>

<Keep>

<Kill>

<RegEntry>

<Replace>

<Shortcut>

<Suite>

<Suites>

<Variable>