How do I check a project into CVS?
Author: Deron Eriksson
Description: This tutorial demonstrates how to check a project into CVS.
Tutorial created using: Windows XP || JDK 1.5.0_09 || Eclipse Web Tools Platform 2.0 (Eclipse 3.3.0)
(Continued from page 1)
In another tutorial, we showed how to add a CVSW repository's connection information to EclipseSW. Here, I specified to 'Use existing repository location' and then selected the \cvsrepo repository on the derbizz host that we created in the other tutorial. The connection type is pserver, and Deron is the user that is used to connect to the repository.
I specified to 'Use project name as module name'. This will create the project at the top level of the CVS repository.
On the Share Project Resources screen, I accepted the defaults. Notice that the bin directory gets ignored by default, since normally we don't check in our compiled class files. Also, notice that the 'Launch the Commit wizard' checkbox is checked. I clicked Finish.
This brought up the Commit screen. I entered 'this is a demo project' as the comment and clicked Finish. We're done!
If you look at your project now in the Navigator view, you can see that demo-project now has [derbizz] next to the project name, indicating where the project is located in version control. Also, notice that in the lower-right corner of the project icon that you can see an orange jelly-bean or cheddar cheese round or something-like-that icon. This indicates that the project is in version control.
The orange icon also indicates that the src folder, its contents, the .classpath file, and the .project file are all checked into version. Notice that no icon exists on the bin folder or on its contents. This indicates that bin and its contents are not checked into version control.
If we go to our CVS Repository Exploring perspective and go to the CVS Repositories view and open our repository, we can see that the demo-project has indeed been checked into the derbizz repository. As you can see, src, its contents, .classpath, and .project are checked into version control, while bin and its contents are not checked in.
Eclipse has excellent integration with CVS. Checking a project into version control from Eclipse couldn't be much easier.