Question & Answer
Question
Why is there an error when trying to add an IBM Rose RealTime model to source control using RCS or SCCS?
Answer
The problem may be in the source control repository path. The perl scripts used in Rose RealTime to add a model to RCS or SCCS source control, evaluates a '+' as part of a regular expression. Therefore if there is a '+' in the path the following errors below may be seen.
1. RCS
Consider a RMF file with the following contents, /usr/RCSC+/usr/RCSRepository/Models
When adding a model to source control the following error is displayed:
Error: Command failed to execute: $ROSERT_HOME/bin/sun5/cmscripts/rcs/cm_add: Repository directory "usr/RCSRepository/Models+" must exist before elements may be added.
Change the RMF file to the following, /usr/RCSC++/usr/RCSRepository/Models and a different error will be displayed.
When the model specification is opened and Enable Source Control is selected, the following error is displayed:
Error: Command failed to execute: /^(/usr/RCSC++)(.*)$/: nested *?+ in regexp at $ROSERT_HOME/bin/sun5/cmscripts/rcs/rmf.pl line 53.
2. SCCS
Consider a RMF file with the following contents,
/usr/RoseRTCases/SCCSModels+/usr/SCCSRepository/Models
When adding a model to source control the following error is displayed:
Error: Command failed to execute: $ROSERT_HOME/bin/sun5/cmscripts/sccs//cm_add: Repository directory "usr/SCCSRepository/Models+" must exist before elements may be added.
Change the RMF file to the following, /usr/RoseRTCases/SCCSModels++/usr/SCCSRepository/Models and a different error will be displayed.
When the model specification is opened and Enable Source Control is selected, the following error is displayed:
Error: Command failed to execute: /^(/usr/RoseRTCases/SCCSModels++)(.*)$/: nested *?+ in regexp at $ROSERT_HOME/bin/sun5/cmscripts/sccs/rmf.pl line 53.
WORKAROUND
Do not use the '+' character in the path for the local working directory where the local copy of the model is stored or the RCS or SCCS repository.
[{"Product":{"code":"SSSHKL","label":"Rational Rose RealTime"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General information","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF027","label":"Solaris"},{"code":"PF016","label":"Linux"}],"Version":"2001a.04.00;2002.05.00;2002.05.20;2003.06.00","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSSHKL","label":"Rational Rose RealTime"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":null,"Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF027","label":"Solaris"},{"code":"PF016","label":"Linux"}],"Version":"2001a.04.00;2002.05.00;2002.05.20;2003.06.00;2003.06.12","Edition":"All Editions","Line of Business":{"code":"LOB45","label":"Automation"}}]
Historical Number
18592
Product Synonym
Rose-RT
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21124755