The Capella Requirements viewpoint provides the capability to launch a ReqIF file import from command line.
-appid: id of the command line application to be launched.
-filepath: aird file path (relative to the workspace).
-data: path to be used for the workspace.
-import: defines a list of projects to import into the workspace before doing the actual job (the list of projects is a '|' separated list).
![]() |
Default behavior of the command line support checks that the specified workspace is not in use by another instance of Eclipse. |
![]() |
If the path to the aird file, or the path to the workspace, or the path to the log file contains white space, it should be in quotes (eg: -data "D: \Application Data\workspace") |
This command imports the file d:/test.reqif into the <workspacePath>/test/test.aird file. The project test is an existing project into the specified workspace. An importcontext parameter allows to specify the URI of the model element on which the import will be applied.
<CapellaInstallationPath>/eclipse.exe -nosplash
-application org.polarsys.capella.core.commandline.core
-appid org.polarsys.capella.vp.requirements.importer.commandline
-data <workspacePath>
-filepath /test/test.aird
-reqifpath d:/test.reqif
-importcontext "test/test.capella#971d9934-9780-4e41-b02e-312d0eac3223"