Search your blog

Saturday, December 12, 2009

How add an eclipse project into CVS Repository

How add an eclipse project into cvs Respository





How add an eclipse project into CVS Repository



Configuring Eclipse to
Know of Your Repository


Launch
Eclipse, and select Windows->Perspectives->CVS Repository Exploring.
Either click on the CVS+ icon on the CVS Repositories View or right-click on
the background of the CVS Repositories View on the left side of your workbench.
Fill in the following






Note: If
you are using a CVS repository hosted on your own machine, use your machine's
host name and repository path, as well as login information.


Important:
Make sure you replace user name and password, as well as repository location
with the ABSOLUTE path to your CVS repository.



Adding your Project to CVS




Once you've created your own Java project, you may want to share it on your
repository so your teammates can check it out and begin work. In order to do
this, in the Java perspective, right-click on your project in the Package
Explorer view, select Team->Share Project. A list of repositories that
Eclipse knows of will appear, select the repository you want to use to host
your project. Press next, and it will ask what name would you like to use for
the module, select Use Project Name as Module Name, and click next. Eclipse
will then add the project to CVS and bring up the Share Project window. Here,
right-click on the project name in the upper-right panel and select Commit...


 


You
will be asked are you sure you want to add these files to CVS, select Yes, and
type in your comment and press finish. Your project is now on the CVS
repository available for others to check out and modify.


 


Checking out a Project from CVS


After your Java project has been added and
committed to CVS, your teammates will want to check the project out to begin
work (one would hope...). They must configure their Eclipse to know of your
repository using the above instructions.











Go to the CVS Repository Exploring
perspective, and expand the repository hosting the project, expand Head, and
right-click on the project. Select Check Out As Project. That's it, the project
is now in your workspace ready to begin work.


 


 


Synchronizing with CVS


By now, you and your team should all have
your project in your Eclipse workspaces. When it is time to commit you changes
to CVS at the end of the day, take the following precautions.


  • Make sure your workspace
    compiles! Do not commit anything if your project does not compile. Fix
    this before proceeding.
  • Make sure your workspace
    has no PMD or Checkstyle errors. Make life easier in the long-run by
    trying never to commit files that have such problems in the first place.
    Fix these first.
  • Make sure you refresh your
    project first. Right-click on your project in Package Explorer view and
    select Refresh. Since Eclipse deals directly with your file system, if
    things have changed, it could have cached old information. This ensures
    Eclipse is up-to-date with the files it is referencing in your project.

Once you've completed the above checklist of
things to remember to do, right-click on your project in Package Explorer view
and select Team->Synchronize with Repository. It will ask you whether you
want to go to Team Synchronization perspective in Eclipse 3.0 (Eclipse 2.11
will not ask), you can choose yes or no. Either way, you will see a Synchronize
view which is what is important.


 


 


 








Thursday, December 10, 2009

How to Configure CVS Repository in Eclipse IDE



CVS Repository in Eclipse IDE using pserver(http://ahmed-sumon.blogspot.com/2009/12/how-to-configure-cvs-repository-in.html)




How to Configure CVS Repository for Eclipse IDE

Step 1.

Setting up CVS Repository

1. Install cvsnt-server-2.5.04.3510.msi.

2. Add a new CVS repository

a)open cvsnt server>select Repository configuration>click Add button(see figure-1)




Figure-1




Step 2.

Repository setting

Location: Browse directory for repository location click on browse button.

Name: put a name of repository and click OK.(see figure-2)


Figure-2

Finally CVS Repository will be created in your specified directory.