Once you are
satisfied that the changes to the rules have
the intended effect on code generation, the last step is to deploy
the rules to the .jar file that IBM® Rational® Rhapsody® uses
when it performs customized code generation.
About this task
To deploy the changed
rules:
Procedure
- In RulesComposer,
select .
- For the export
destination, select .
- Click Next.
- For the export directory, select <Rational
Rhapsody installation path>\Share\CodeGenerator\GenerationRules\LangC\CompiledRules
Note: By default, the
.jar file
containing the existing rules (
RiCWriter.jar) is
read‑only. Make sure to change this attribute before attempting to
export the updated rules.
- Under Export Options, select Deploy
JAR file.
- Click Finish.
The
new rules are as RiCWriter.jar.
Note: Rational Rhapsody looks
for the compiled rules in the filename given for the
C_CG::Configuration::GeneratorRulesSet property.
The default value for this property is
$OMROOT\CodeGenerator\GenerationRules\LangC\
CompiledRules\RiCWriter.classpath.
- To implement the rules in the updated .jar file,
you must close and then re‑open Rational Rhapsody after
you have exported the .jar file.