Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Appendix C Schema Files used when Exporting and Importing : Using RepoExport and RepoImport

Using RepoExport and RepoImport
You can export and import projects in one of two ways:
Use the RepoExport or RepoImport utilities. See RepoExport and RepoImport.
Simple export and import operations are useful, for example, if you want to archive your configuration in XML format. They are even more frequently used by developers who want to import an existing project (or part of it) into another project.
Example: Importing an Adapter into an Existing Project
To import an adapter into an existing project, follow these steps:
1.
   RepoExport -url url -format AEXML -nochase exportfile
   /tibco/private/adapter/ADB/ACME
url is the location of the repository instance in which the adapter is stored.
/tibco/private/adapter/ADB/ACME is the root node of the adapter.
The command creates an XML file of the adapter. The file uses AEXML format so validation during import is possible. The file does not include the contents of referenced nodes. As a result, the adapter won’t overwrite, for example, metadata or sessions already defined in the repository into which you want to import.
2.
   RepoImport -url url importfile -continue
This command imports the adapter repository file importfile into the specified location inside a project. The import uses all schema files in the current directory for validation and continues import even when validation errors are found.
Example: Exporting, Changing, and Importing an Adapter
If you wanted to export an adapter to XML, make changes in the XML file, then the adapter into an existing project, follow these steps:
1.
   RepoExport -url url -format AEXML -nochase exportfile
   /tibco/private/adapter/ADB/ACME
url is the location of the project in which the adapter is stored.
/tibco/private/adapter/ADB/ACME is the root node of the adapter.
The command creates an XML file of the adapter. The file uses AEXML format so validation during import is possible. The file does not include the contents of referenced nodes. As a result, the adapter won’t overwrite, for example, metadata or sessions already defined in the project into which you want to import.
2.
3.
   RepoImport -url url importfile
This command imports the adapter project file importfile into the specified location inside a project. The import uses all schema files in the current directory for validation. The import process stops if errors are found.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved