Home

 

Development scenario

Note: The example in this chapter calls for two simulated developer systems. For demonstration purposes, this can be accomplished by having two workspaces on the same machine. Refer to Workbench basics for detailed instructions on setting up multiple workspaces.

To show you how to work with CVS in Application Developer, we follow a simple but typical development scenario, shown in Table | 8-3.

Two developers, cvsuser1 and cvsuser2, work together to create a servlet ServletA and a view bean View1.

Table 28-3

Step Developer 1 (cvsuser1) Developer 2 (cvsuser2)
1 Creates a new Dynamic Web Project RAD75CVSGuide and a servlet ServletA in it and adds it to the version control and the repository.  
2 2b: Updates the servlet ServletA. 2a: Imports the RAD75CVSGuide CVS module as a Workbench project. Creates a view bean View1, adds it to the version control, and synchronizes the project with the repository.
3 3a: Synchronizes the project with the repository to commit the changes to repository (servlet) and receives changes from the repository (view bean). 3b: Synchronize the project with the workspace to receive the servlet.
4 4a: Continues changing and updating the servlet. Synchronizes the project with the repository to commit his changes to repository and merges changes. 4c: Synchronize with the repository to pick up the merged servlet. 4a: Begins changes to servlet in parallel with developer 1. 4b: Synchronizes the project after cvsuser1 has committed and has to merge code from the workspace and the CVS repository.
5 Assigns version number the project.  

Sample development scenario

Steps 1 through 3 are serial development with no parallel work on the same file being done. During steps 4 and 5 both developers work in parallel, resulting in conflicts. These conflicts are resolved using the CVS tools in RAD v7.5.

In the sections that follow, we perform each of the steps and explain the team actions in detail.

Important: Always work in the workspace of the correct user (cvsuserX).

ibm.com/redbooks