Saturday, July 13, 2013

xCP2 Version Control

You can use a third-party source control system to manage application resources. All source control actions are initiated through the third-party source control client. The following high-level steps summarize how to use a third-party source control system to manage resources:
  1. Install the source control repository and client.
  2. Create an xCP Designer application on your file system.
  3. Add the application root folder to the source control repository.
    Exclude the following folders (indicated with a forward slash) and files when adding the application root folder and its contents to the repository:
    • configuration/
    • gen/
    • META-INF/
    • target/
    • .index
    • .generatedresources
    • runapp.log
    • exportApp.log
  4. Verify that the application is under source control by confirming the following folders (indicated with a forward slash) and files are in the repository:
    • .settings/
    • Artifacts/
    • content/
    • lib/
    • src/
    • .classpath
    • .project
    • build.properties
    • pom.xml
  5. To work with an application that another developer has added to the source control repository:
    • Check out the application from the source control repository to the checkout directory on your file system.
    • Import the application into your xCP Designer environment.
      Do not select the option to import a copy of the application.
    • After you update shared resources, check them into the source control repository.
    • To get changes that were checked in by other developers, use your source control client to synchronize your local file system with the changes from the source control repository and then click Refresh on the xCP Designer toolbar to pick up the latest changes.
Refer to the documentation for your source control system for more information on setting up a source control system and using the source control client to complete source control actions.

Kind regards, Marcus