Show TOC

Developing CAF Applications Using CVS as Source RepositoryLocate this document in the navigation structure

Prerequisites

  • You have installed SAP NetWeaver Developer Studio.

  • ● You have installed Eclipse CVS Client.

Context

Sharing a Project

You need to keep the DI folder's structure, and not change the CAF project's DCs names in CVS. You need to create the folder's structure even in CVS for project sharing or when you check out the project.

CAF generated files are by default marked as Derived, and should not be shared. This prevents merge conflicts in the text-based files that are generated.

Checking Out a Project

You must check out all DCs generated by CAF.

Note

When you check out or share a project, you must disable the Derived indicator from resources stored in ejbmodule\src\META-INF\wsdl folder and its subfolders except for the int folder content. Enable Derived flag for int folder. This keeps the imported WSDL's information which is generated when you import a WSDL. This information should exist in CVS to keep the CAF project consistent.

Procedure


  1. Sharing a project:

    1. Click the dictionary DC with the secondary mouse button and choose Properties .

    2. Copy the last part of the location path.

      For example, if your path is C:\test_ws\workspace3.jd\LocalDevelopment\DCs\demo.sap.com\pr1\dictionary\_comp , you need to copy the following part demo.sap.com\pr1\dictionary\_comp , which contains <vendor>\<project name>\<dc type>\<folder of the project>

    3. Click the dictionary DC with the secondary mouse button and choose Start of the navigation path DC Next navigation step Team  Next navigation step  Share Project. End of the navigation path

    4. Choose CVS .

    5. Choose Use specified module name and paste the path you have copied.

    6. Repeat the same for all the DCs generated for your composite application.

  2. Checking out a project:

    1. Open the Development Infrastructure perspective and, in the Components Browser , navigate to the component MyComponents .

      1. On the Component Properties tab page, copy the Local Root path.

      2. Create a directory in the SC path with the name of the vendor you have chosen. The vendor name should be the same as the one of CAF project that you want to check out. You check out your CAF projects there.

    2. Open the CVS perspective.

    3. Navigate to the folder containing the project to be checked out, click it with the secondary mouse button and choose Check out as a project in the workspace.

    4. Disable the Use default workspace location indicator.

    5. Choose the vendor name folder you have created.

    6. You need to delete the single project that Eclipse has created during the checkout. In the Eclipse Navigator view, click the project for check out with the secondary mouse button and choose Delete . Enable Do not delete contents indicator and choose Yes .

    7. Open the Development Infrastructure perspective.

    8. Navigate to Start of the navigation path Development Infrastructure Next navigation step My Components End of the navigation path and select the five DCs.

    9. Click them with the secondary mouse button and choose Sync / Start of the navigation path Create Project Next navigation step Create Project.  End of the navigation path

    10. In the Composite Application perspective, generate and build the project.

  3. Committing a project:

    1. Open the Composite Application perspective.

    2. Save, generate and build your project.

    3. Disable the Derived indicator for ejbmodule\src\META-INF\wsdl folder and all of its subfolders and files except for the int folder content. Enable the Derived flag for the int folder.

    4. In the Navigator view, select the five DCs that were generated for your project, click them with the secondary mouse button and choose Start of the navigation path Team Next navigation step Commit. End of the navigation path

  4. Updating a project from the repository:

    1. Open the Composite Application perspective.

    2. In the Navigator view, select the five DCs of the project you want to update, click them with the secondary mouse button and choose Start of the navigation path Team Next navigation step Update. End of the navigation path