Deploy the Launch Configuration as single JAR file

The final step is to deploy the launch configuration that we have been executing so that Rational Rhapsody uses our generator.

  1. Click File > Export...
  2. Open the RulesComposer folder, select Deployable RulesComposer configuration, and press Next.
  3. Choose the JavaGeneration launch configuration and press Next.
  4. Enter the location where to deploy the rules, click Deploy JAR file, and press Finish
  5. Note: If you wish to encrypt Jars, you can press button Advanced and check option Obfuscate rulesets and scripts.

  6. You can now:

    1. Set the properties shown below on the Configuration in Rational Rhapsody so that our generator is used.
    2. Or insert a new Helper in Rational Rhapsody menu Tools using Tools > Customize…:

      With Command =
      <rhapsodyInstallationDirectory>\Sodius\RulesComposer\bin\rhp_generate.bat

      With Arguments =
      C:\tmp\JavaGeneration\JavaGeneration.launch

    3. For details see tutorial.

Prev Section: Include a Javadoc template
Next Section: Use filenames associated to objects in Rational Rhapsody

Related reference
Deploying a launch configuration