Export/Import Example

The Export/Import example shows you how to clone an EWM process area from one repository to another. The example provides a project which you can download and import into your Eclipse® workspace. The project contains example Ant scripts that can be used to export process area definitions from one repository, in Ant script format, that can then be run to import those definitions into another process area in another repository. Exporting definitions from a process area can be used to set up a test system based on production system definitions or to develop definitions in test and migrate them to production once the definitions have been tested.

Getting Started

The first step in using the example is to import the project into your Eclipse workspace. To do that, download the ExportImportExample project using the link above. Once the download has completed goto "File - > Import..." in your Eclipse client.

general.existing

Choose "General - > Existing Projects Into Workspace" and click Next.

select.archive.file

Choose "Select archive file:", then "Browse..." to locate where you downloaded the zip file, then click Finish. Once the import process is finished you will find the ExportImportExample project in Project Explorer.

Contents

project.explorer

Instructions

The following is a list of step-by-step instructions to follow to export your definitions from one repository and import them in another.

  1. Fill in export.login.properties:

    export.login.properties

    Note: See the following Ant task documentation for more information on these property values.

  2. Load workspace for file/folder metadata exports:

    load.workspace

  3. Run exports/Components.xml:

    run.as.ant.build


    same.jre.as.workspace

    Note: The first time each Ant script is run you must set the JRE to use. After the JRE has been set, the script can be run by simply choosing "Run As > Ant Build", skipping the JRE step.

  4. Review imports/Components.xml

    Note: During each review search for "ERROR:" to see if any errors occurred during the export.

    check.for.errors.png
  5. Fill in import.login.properties

    Note: The import.login.properties file has two extra properties, buildagentPassword and buildagentUserid, which need to be filled in. The buildEngineExport task does not export the userid and password for a Rational Build Agent build engine, instead it inserts these two properties into the appropriate build engine elements. Fill in these two properties with the appropriate values for the import system.

  6. Run toolkit/CreateWorkspace.xml:
  7. Import projects from export to import workspace
  8. Move source code to import system
  9. Check-in and Deliver file metadata change sets