TIBCO BusinessEvents Studio Tools Utility : Importing a TIBCO BusinessEvents (4.x) Studio Project at the Command Line

Importing a TIBCO BusinessEvents (4.x) Studio Project at the Command Line
This option is equivalent to the following menu option in TIBCO BusinessEvents Studio: File > Import > TIBCO BusinessEvents > Existing TIBCO BusinessEvents 4.0 Project. It is used to migrate 4.x projects to 5.0. When you run this command-line utility, various migration actions are done, as explained in Migration from 4.x to 5.0 — Automatic Migration Changes in TIBCO BusinessEvents Installation.
Before you can use a 4.x project imported at the command-line in TIBCO BusinessEvents Studio you must do another procedure, explained in To Open a Project Imported at the Command Line in TIBCO BusinessEvents Studio.
To Import an Existing 4.x Project at the Command Line
1.
Navigate to BE_HOME/studio/bin/ and open a command prompt.
2.
studio-tools -op importExistingProject [-h] -p studioProjDir [-o targetProjDir] [-c CDDprojectPath] [-u PUNameFromCDD]
For example:
studio-tools -op importExistingProject -p C:\FT\SomeProj -o c:\MyWorkspace\SomeProj -c COM.cdd -u Invproc
If HTTP channel properties are migrated (from a specified CDD and processing unit to all HTTP channel resources’ Advanced tab) you see a message like this:
Migrating HTTP properties of Processing Unit "PUName" from CDD "CDDprojectPath" to HTTPChannel(s) present in the project
When the import has completed successfully, you see a message in the command window like the following:
The existing 4.0 TIBCO BusinessEvents project has been successfully imported to c:\MyWorkspace\SomeProj.
Table 6, TIBCO BusinessEvents Studio Tools Options for Importing an Existing Project, provides detailed information about the options.
-op importExistingProject
Specifies the importExistingProject operation for importing a TIBCO BusinessEvents Studio project into the workspace.
If you specify the source project directory name as the last element in the path, it is used as the target project directory. If you specify a different directory as the last element in the path, the directory is created if it does not exist, and the source project directory is imported within the specified target directory.
If you do not specify a target project directory, the original project contents are updated. If the project to be imported is a TIBCO BusinessEvents version 4 project, it is no longer compatible with version 4 after the import.
Optional. The CDD to use for migration actions. Project path of the CDD (path relative to the root directory of the source project).
Optional but if specified -c must also be specified. Specifies the name of the PU (within the specified CDD) that contains settings to be migrated.
To Open a Project Imported at the Command Line in TIBCO BusinessEvents Studio
To open a project imported at the command line, you must add it as a new project.
1.
Start TIBCO BusinessEvents Studio. In Windows, click Start > All Programs > TIBCO > YourEnvironment > TIBCO BusinessEvents 5.0 > TIBCO BusinessEvents Studio.
2.
From the File menu select New > Project. You see the New Project — Select a Wizard dialog.
3.
Select TIBCO BusinessEvents > Studio Project and click Next.
4.
5.
(If you imported the project to a directory in your default workspace, skip this step.) If the project directory is located outside the default workspace, uncheck the Use default location checkbox and browse to the parent directory of the project imported at the command line.
6.
Click Finish. The project folders appear in the Studio Explorer view.