Show TOC Start of Content Area

Procedure documentation Developing with CAF in Team-Oriented Environment  Locate the document in its SAP Library structure

Use

You can use the Design Time Repository (DTR) of the SAP NetWeaver Development Infrastructure (NWDI) to synchronize simultaneous development on projects used in creating composite applications. Since the work of a team is done at source file level, the DTR is the optimal tool for file-based versioning in the Java development process.

The DTR provides Java sources, XML files, and so on that are stored in a database, but they are visible in the SAP NetWeaver Developer Studio. Developers can use the DTR for checking out source files or for synchronizing files for read access to their local hard disks.

After local development and testing, developers can check in their changes. The DTR manages distributed versions and is capable of resolving version conflicts when integrating changes from other workspaces.

Procedure

 

...

       1.      Set up your development environment for work in a team.

More information: How to Perform Team-Oriented Development.

       2.      Create a project.

Note

When you work with remote CAF projects stored in the DTR, you must be logged on to the DTR to delete these projects. Remote projects are the ones you had checked in to the DTR and local projects are the ones that are stored on your hard disk. 

You can create these types of project:

¡        Local project – the files are stored locally.

Note

If you delete the project it is deleted from your local file system.

       Remote offline project – you can create this kind of project when you are not connected to the DTR. To do this, in the New Development Component (Project) dialog, enable the Keep DC local for now(use “Add to Source Control” later). Note that to add files to an activity later, you have to open the Composite Application perspective and from there choose Team Add Local Files.

Note

After you are online again and log on to the DTR you should apply all offline changes you made to an activity. To do that, choose Team Add Local Files.

If you delete the project it is deleted from your local file system. If you want to remove files that you have deleted from your local file system but still exist in the DTR, do the following:

                                                  i.       Open the Development Infrastructure perspective.

                                                ii.       Select the development component in which the files for deletion are stored.

                                               iii.       Open the Component Properties view and then open the Folders tab page.

                                               iv.       Click the file you want to delete with the secondary mouse button and choose Remove.

¡        Remote online project – the project is synced with the DTR and you store your project on the DTR.

Note

If you delete the project it is removed only from your local file system but it remains centrally stored on the DTR.

       3.      Check in your project to the DTR.

Before you check in your activity make sure that:

       You have generated successfully the project.

Caution

If you have added custom code to the implementation of your business object nodes or application services, upon generation you are prompted to choose files to be added, edited or deleted. The next time you generate your project you will not be allowed to delete the same files.

       You have checked whether the table name for your business object is reserved. To do this, choose Team Check Table Name Reservations. Open the Persistency tab page and manually change the name if it is reserved.

       4.      Use the DTR to resolve conflicts.

Caution

After merge of conflicting versions you must always open the Composite Applicationperspective and sync the project to the DTR before continuing your work on the project.

More information: Resolving Conflicts in CAF.

More Information

Activity

Working with the Design Time Repository

 

End of Content Area