Installation and Upgrade Information : Updating Files when Opening a Workarea

Updating Files when Opening a Workarea

Rational Statemate offers a file-update service. When opening a workarea, Rational Statemate checks the availability of newer versions for a list of files. This service allows various file-updates to be easily propagated into the workarea, and might be used, for example, to deliver new template files. After opening a workarea, an update occurs according to rules defined in the files2copy_list.txt in the $STM_ROOT/etc directory.

Files Format:

Each line represents a copying rule with the one of the following syntax:
-- comment text
ALL “<SOURCE>” “<TARGET>”
FILE “<SOURCE>/<FILENAME>” “<TARGET>/<FILENAME>”
TYPE “<SOURCE>” “<TARGET>” <EXTENSION>
SOURCE - path to the source files directory.
TARGET - path to the destination directory.
FILENAME- file name.
EXTENSION - copy only files with the defined extension.
SOURCE and TARGET can use the following predefined values as prefix <STM_ROOT>,
<WA_PATH >, <OSI_PATH>.

File Example:

-- Version 1.0
ALL "<STM_ROOT>/etc/rapid" "<WA_PATH>/prt"
-- The line above will result in updating all the files
-- found in the WA/prt against those found in the
-- root/etc/rapid directory.
FILE "<STM_ROOT>/etc/inc/std_template_rtf.dgl"
"<WA_PATH>/tml/std_template_rtf.dgl"
-- The line above will result in updating std_template_rtf.dgl
-- found in the WA/tml directory against the
-- std_template_rtf.dgl found in the root/etc/inc/ directory.
TYPE "<OSI_PATH>" "<WA_PATH>/prt" mak
-- The line above will result in updating all the makefiles
-- ending with the extension ".mak", found in
-- the WA/prt directory against those found in the root/etc....directory.