DEPRECATED Information on this page is deprecated and applicable only to NSF <2019.5. See Import/Export instead.
The Prime Radiant provides functionality to import models. This functionality is also available to execute from the cmd line.
The class FullApplicationToPrime imports the entire application model. More specifically:
- It will import the application model from
- It will import application instances from
- It will import components defined in the application (baseComponents are not included). Component directories will be found in
The API call looks like this:
java -cp %CP% net.democritus.elements.runner.FullApplicationToPrime applicationFile [directory] [options]
e.g. java -cp %CP% net.democritus.elements.runner.FullApplicationToPrime C:/temp/export/applications/euRent/model/euRent-1.0.xml C:/temp/export
For this to work the Prime Radiant must be running and the following jars must be included in the classpath:
- elements-shared, elements-proxy
- nsx-shared-common, nsx-common, nsx-logging
|1||application||no||Name (shortName) of the application|
|2||directory||yes||Directory from which to import the files. If not defined applicationPath and componentPath will be used.|
||APPLICATION_PATH||Path to the applications folder. Can be multiple paths separated by a
||COMPONENT_PATH||Path to the components folder. Can be multiple paths separated by a
||false||-||Use the full component file instead of a component directory.|
||admin||-||Username used to connect to the PR|
The source folders are defined in the same way as the target folder are defined for the export.