MagicDraw 18.2 Documentation
MagicDraw or other modeling tool run in OSGI Framework. This implies that batch mode programs or any applications that start MagicDraw or other modeling tool have to run in OSGI Framework as well.
In order to launch the program the launcher is started using java command line which then starts the program inside the framework. The initial classpath have to include only jars needed to start the framework launcher. Here is the list of required jars on the classpath:
The rest of batch mode program is configured using system properties. MagicDraw or other modeling tool jars are specified using system property
md.class.path. The preferred way to specify this classpath is as follows:
file:<absolute or relative URL to MagicDraw or other modeling tool configuration properties file>[?base=<path to MagidDraw or other modeling tool installation directory>]#<classpath property name>
In case the current directory is the MagicDraw or other modeling tool installation directory
base parameter does not have to be specified. Classpath property name for MagicDraw or oher modeling tool property file is
The jar(s) constituting batch mode program specific classpath is specified using system property
md.additional.class.path. The jar's are separated using platform specific path separator in the same way as for regular classpath.
The system property com.nomagic.magicdraw.launcher specifies the batch mode program you want to launch, eg.
There are other mandatory properties that have to be specified as well:
They here are specified as paths relative to
<modeling tool installation directory> therefore you either have to make your current directory before launching your program or to specify absolute paths for above listed properties.
The main class to run is
com.nomagic.osgi.launcher.ProductionFrameworkLauncher which is the OSGI framework launcher that starts the program in OSGI Framework.
The example of complete bash command lines that launches batch mode program:
- No labels