Question & Answer
Question
How do you use property CG:File:InvokePostProcessor in IBM Rational Rhapsody?
Cause
You would like to use the Post Processor to process externally developed code scripts in Rational Rhapsody
Answer
The InvokePostProcessor property runs a post-processing utility on the code that is generated by Rational Rhapsody.
Example: You could run a beautify program to get a specific coding style.
When this property value is not empty, Rational Rhapsody runs a process by using the specified command.
You can specify the post-processing command on a single file or higher (folder, configuration, component, project, or site). You can specify the following keywords as part of the command:
- $file - The name of the generated file
- $projectPath - The current project root directory
Rational Rhapsody generates code by using the following sequence of events - Rational Rhapsody generates code into a temporary file
- If the target file already exists (because of a previous build), Rational Rhapsody compares the temporary file to the target file
- If there are differences, the target file is replaced with the temporary file
- If you specified a post-processor command, Rational Rhapsody runs the post processor on the temporary files. Any messages from the post-processor are displayed in the Output window
- The temporary files are copied to the final location.
Product Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg21432919