Step 1: Downloading Eclipse Plugins
1. org.eclipse.team.cvs.core_2.1.1 2. org.eclipse.team.cvs.ssh_2.1.1 3. org.eclipse.team.cvs.ui_2.1.1
Step 2: Customize the Prespective
1. In NWDS Windows -> Customize Perspective -> Click on Other -> Check the checkbox CVS 2. Click on Open a Perspective Or Windows -> Open Perspective -> CVS Repository Exploring.
Step 3: Defining Repositories
Before you share a project, you need to define the repositories that Together will use. Prior to this, the CVS Repositories view will be blank. Use the Add CVS Repository wizard to define a repository: Specifying a repository location Before we can share our project with other users we must first specify an available repository. 1. Open the CVS Repository Exploring perspective. The top left view shows all of the CVS repositories that we are currently working with. As you can see, the view is empty, meaning we still need to specify a repository. 2. In the context menu of the CVS Repositories view choose New -> Repository Location. 3. In the CVS Repository Location wizard we need to fill in the location of our repository and our login information. You may require assistance from your repository administrator in order to fill in the necessary information. 4. In the Host field, type the address of the host (e.g., “bgm-ux-rpt1”). 5. In the Repository path field, type the path for the repository at the host address (e.g., “/opt/cvs-repository”). 6. In the User field, type the user name under which you want to connect. 7. In the Password field, type your password. 8. In the Connection type field, select the type of CVS connection for the repository (The default is pserver). 9. Leave Use Default Port enabled. 10. By default the Validate Connection on Finish option is checked. 11. Click Finish when you are done. 12. Observe that the CVS Repositories view now shows the new repository location. CVS Repositories view The CVS Repositories view, which is part of the CVS Repository Exploring perspective, shows the CVS repository locations that you have added to your Workbench. Expanding a location reveals the main trunk (HEAD), project versions and branches in that repository. You can further expand the project versions and branches to reveal the folders and files contained within them. The pop-up menu for this view also allows you to specify new repository locations. Use the CVS Repositories view to check out resources from the repository to the Workbench, configure the branches and versions shown by the view, view resource history, and compare resource versions.
Step 4: Sharing Projects
Before you can share a project, you need to define a repository location. If you haven’t already, you may do so by following the steps in Defining Repositories. Or you can proceed with step one below and set up your repository in step two. When viewed in the NWDS, a Java Project contains at least two resource divisions: • The first is your normal project structure: the directories/packages you have created and your source code. • The second section is the Together Model directory. This contains the actual diagram files generated and used by Together and includes the .project and .classpath files. 1. Right click on the project, and select DTR -> Share Project from the context menu. The Share Project wizard displays: DTR and CVS select CVS. 2. Choose whether you want to use the existing repository location or create a new repository location. If you choose to create a new location, the Share Project wizard opens as described in Defining Repositories. The example above uses an existing repository. Click Next. 3. In the new dialog, choose either to use the project name as the module name, or specify a different module name. Click Next. 4. In the final screen, the wizard explains your status in the process. If you need to make any modifications, click Back. Click Finish, and the wizard imports your project to the repository. 5. From now on, when using the Team command from this project’s context menu, the Update and Commit commands are enabled. Respectively, these options commit your changes to the repository, and refresh your view with changes made by other team members.
Step 5: Checking out a project
• Co-Team Member “TM1” has several tasks in front of him: • Add the project to Workbench • Make changes to Project1.java and Project2.java • Synchronize and commit his outgoing changes to the two files. “TM1’s” first step is to add the project to his workspace as follows: 1. In the CVS Repositories view context menu choose New -> Repository Location. 2. In the CVS Repository Location wizard fill in the same repository location that “TM2” filled in. 3. In the CVS Repositories view expand the repository location, then expand HEAD. Under HEAD you should see the project (WiroTeamProject) that “TM2” created. 4. Expand folder1 which is under WiroTeamProject and you should see the files that “TM2” created. 5. Select the project and choose Checkout as Project from the context menu. Select the Navigator view and observe that it now includes the project WiproTeamProject. This blog gives stpes to configure CVS in NWDS IDE. However Java Development Infrastructure(JDI) has the facility of not only source safing the code and also transport Mechanism (DTR,CBS and CMS).