Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Rhapsody (steve huntington)
Decrease font size
Increase font size
Topic Title: PVCS Revision and Rhapsody (Config Management Problem)
Topic Summary:
Created On: 14-Dec-2006 10:08
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 14-Dec-2006 10:08
User is offline View Users Profile Print this message


Volker Subat

Posts: 13
Joined: 20-Jan-2006

Hello there,

can you please help me using Configuration Management in Rhapsody?

As configuration Items we have:[list][*]Components (*.cpt)
[*]Packages (*.sbs)
[*]Files (*.cls)[/list]When we check them into Serena (PVCS-client) it automatically updates a value within the *.cls files called _cmheader.

_cmheader contains the revision information as taken from PVCS.

How can I put this revision-information into the generated source-code?

Or does anyone of you have an idea how to put PVCS-Revision-Information into the auto-generation of *.h or *.c files?
As currently we do not check in the source-code but the Rhapsody-Model only.



By the way:
It would help if someone knows a way for setting up one Property in a profiles which is overriden automatically (i.e. storded in every single *.cls File) with no manual activities of my colleagues.
Report this to a Moderator Report this to a Moderator
 14-Dec-2006 19:38
User is offline View Users Profile Print this message


Simon Morrish

Posts: 127
Joined: 17-May-2005

Dear Volker

One possible approach that occurs to me:

[list=1]
[*]Write a VBA macro to iterate through the whole model, and for each model element of interest (components, packages and files?):
[list]
[*] starting with that element, navigate up the owner hiearchy until you find an element which is of type RPUnit and for which isSeparateSaveUnit = True.
[*] set a Tag or Property on the element of interest to the value of the RPUnit's CMHeader property
[/list]
[*] Set the macro to run after project open, using Tools\Customize\Helper Trigger
[*] Modify the [FONT=Courier New]<lang>_CG::<Metaclass>:escriptionTemplate[/FONT] or [FONT=Courier New]<lang>_CG::<Metaclass>::ImplementationHeader [/FONT] property at the top level of your project, or perhaps in your profile or site properties, to add the name of the Tag or Property that your macro sets. (See Rhapsody Properties help.)
[/list]

I hope that's enough to give the idea; let me know if it helps, or if you have any questions...

regards,
Simon

-------------------------
Simon Morrish
simon.morrish@eu.panasonic.com
http://panasonic.co.uk
Panasonic ideas for life
Report this to a Moderator Report this to a Moderator
 15-Dec-2006 15:07
User is offline View Users Profile Print this message


Volker Subat

Posts: 13
Joined: 20-Jan-2006

Wow - I didn't know a thing about Triggers. They really helped. ... indeed you did!

Whenever the Project is saved know my script is activated to override my custom property in every file that is a separate config item, that is writeable and where the attribute has not been overridden already.

This is so great - thanks a lot!
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 0 users logged in.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.