IBM Support

How to use property CG:File:InvokePostProcessor in Rational Rhapsody

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":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.5.3;7.5.3.1;7.5.3.2;7.5.3.3;7.6;7.6.0.1;7.6.1;7.6.1.1;7.6.1.2;7.6.1.3;7.6.1.4;8.0;8.0.1;8.0.2;8.0.3","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21432919