Designating a root directory

Use the <lang>_ReverseEngineering::ImplementationTrait::RootDirectory property to designate the root directory that contains all the folders that is to become package. In this way, IBM® Rational® Rhapsody® builds the package hierarchy according to the folder tree from the specified path.

About this task

With the RootDirectory property set, the root directory path shows on the Mapping tab when you access it. You can change the path for the particular reverse engineering session you are in by changing the value in the Root Directory field on the Mapping tab.

The RootDirectory property is necessary for code centric modeling as it determines the component directory and supports the package‑to‑directory connection.

The reverse engineering tool calculates the directory that creates the minimum number of packages and suggests (through a message window) this directory as the root directory during the reverse engineering process. You might use the <lang>_ReverseEngineering::ImplementationTrait::UseCalculatedRootDirectory property to set whether the root directory needs to be calculated. The calculated root directory overrides the value in the RootDirectory property.

Note: The root directory feature is available for IBM Rational Rhapsody Developer for C, C++, and Java.

Note the following information:


Feedback