![]() |
Telelogic Rhapsody (steve huntington) | ![]() |
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 |
![]() |
![]()
|
![]() |
|
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. ![]() |
|
![]() |
|
![]() |
|
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>: ![]() [/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 |
|
![]() |
|
![]() |
|
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! ![]() |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.