How to call a java helper plug-in with parameters using Rational RhapsodyCL

Technote (FAQ)


Question

How do you call a java helper plugin with parameters using IBM Rational RhapsodyCL?

Cause

You would like to Invoke a java helper with parameters using Rational RhapsodyCL

Answer

Procedure:

  1. Create and build a Java helper plugin which takes parameters
    A sample java helper plugin (testPlugin.java) and sample helper file (testPlugin.hep) are attached.

  2. Modify the property General > Model > HelpersFile to point to the helper file location in Rhapsody Project properties

  3. Open Command Prompt and navigate to the Rhapsody installation directory.

  4. Run the following command:

    <Rhapsody Install dir>RhapsodyCL -cmd=open C:\work\plugins\Test.rpy -cmd=call TestPlugin -cmd=call "TestPlugin helloparam c:/work/"

Disclaimer

All source code and/or binaries attached to this document are referred to here as "the Program". IBM is not providing program services of any kind for the Program. IBM is providing the Program on an "AS IS" basis without warranty of any kind. IBM WILL NOT BE LIABLE FOR ANY ACTUAL, DIRECT, SPECIAL, INCIDENTAL, OR INDIRECT DAMAGES OR FOR ANY ECONOMIC CONSEQUENTIAL DAMAGES (INCLUDING LOST PROFITS OR SAVINGS), EVEN IF IBM, OR ITS RESELLER, HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.


testPlugin.javatestPlugin.javatestPlugin.heptestPlugin.hep

Rate this page:

(0 users)Average rating

Document information


More support for:

Rational Rhapsody
General Information

Software version:

8.0

Operating system(s):

Windows

Reference #:

1632143

Modified date:

2013-03-26

Translate my page

Machine Translation

Content navigation