To use the command-line interface for importing workspaces
To use the command line to import workspaces to a database, you must run the
ImportManager.bat
file located in the
bin
directory under the
librarymanager
directory. Use the following arguments to specify the database connection and workspace data.
Argument
Description
-vendor
vendor
Specify the 3-character vendor code. (Required) Vendor codes are case sensitive. To avoid inconsistency, is recommended that you always use upper case when entering vendor codes.
-config
config.file
Specify the name of the configuration file that you want to use. The database setting of this configuration file must point to the database from which you want to export workspaces. (Required)
-file
file.xml
Specify the name of the xml file from which to import the workspaces. (Required)
[-user
user_name
]
Optionally specify this argument to assign ownership of the imported rules and components to a user. (Optional)
[-help]
Optionally specify this argument by itself to view the help for this command. (Optional)
For example, you can type the following line to import workspaces in the
exp.xml
file located in a directory named exported, using the database configuration specified in import.config for vendor
ABB
.
ImportManager.bat -vendor ABB -config ../conf/import.config -file ../exported/exp.xml
If you are importing many new workspaces, then ensure that you edited the configuration file(s) to point to the directory for your
Detect
database.
Before you import a file that contains workspaces that are already in your database, you may want to compare the workspace in the file to the workspaces in your database.
Copyright IBM Corporation 2012. All Rights Reserved.