Migrating Projects Using the Command Line

Another option for a speedy migration is migrating the projects using the command line.

Usage: bwmigrator [-options] BW5Project...

where options include the following:
Option Description
-projectDir Location where TIBCO ActiveMatrix BusinessWorks™ 6.x projects are to be generated.
BW5Project... Location\locations of ActiveMatrix BusinessWorks™ 5.x projects.
-propFile The bw6migration.properties file. The syntax for passing the bw6migration properties file is bwmigrator.exe [-data <User_Workspace>] -projectDir <BusinessWorks 6.x Target directory> <BusinessWorks 5.x Project location> -propFile <bw6migration.properties location>.

The template can be found at, <TIBCO_HOME>\bw\6.4\config\bw6migration_template.properties.

Examples

  • bwmigrator -projectDir <BW6_PROJECTS_HOME>\projects <TIBCO_HOME>\5.9\examples\activities\file\File (Migrates single ActiveMatrix BusinessWorks 5.x project.)
  • bwmigrator -projectDir <BW6_PROJECTS_HOME>\projects <TIBCO_HOME>\5.9\examples\activities\file\File <TIBCO_HOME>\5.9\examples\activities\ftp\ftp (Migrates File and FTP ActiveMatrix BusinessWorks 5.x projects.)
  • bwmigrator -projectDir <BW6_PROJECTS_HOME>\projects <TIBCO_HOME>\5.9\examples\activities (Migrates all ActiveMatrix BusinessWorks 5.x projects in activities directory.)
  • bwmigrator -projectDir <BW6_PROJECTS_HOME>\projects <TIBCO_HOME>\5.9\examples\file <TIBCO_HOME>\5.9\examples\ftp (Migrates all ActiveMatrix BusinessWorks 5.x Projects in File and FTP directories.)

Procedure

  1. For Java migration enter the following command:
    bwmigrator.exe -projectDir c:/temp -classpath <Jar Location Path> <BW 5.x Project Path>
  2. For non-Java migration enter the following command:
    bwmigrator.exe -projectDir c:/temp <BW 5.x Project Path>
  3. For the Eclipse environment, run the bwmigrator tool as described in step 2, but use a temporary directory (not the Eclipse workspace directory) as a target.
    In addition, to make the project visible in the current workspace, open the Eclipse UI, select File > Import Existing Studio Project into Workspace, and specify the temporary directory as the source.