It's not a secret anymore!
The moose likes IDEs, Version Control and other tools and the fly likes Version control in eclipse indigo Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Version control in eclipse indigo" Watch "Version control in eclipse indigo" New topic

Version control in eclipse indigo

Govinda Gopala

Joined: May 12, 2011
Posts: 18
i am new to eclipse
but it is a fab tool
i heard there are many plugins available which makes working in eclipse easy

just wanted to know how to do the version control in eclipse

i use indigo
inorder to take backup

i copy my workspace everytime is there any tool which makes this thing happen in eclipse itself


everytime i design/modify a jsp i have to run inorder to see the changes

is there any way to see the changes instantly(like a preview function)

hoping you guys will help

Peter Johnson

Joined: May 14, 2008
Posts: 5852

CVS integration is built into Eclipse. In addition, there are plugins for many open-source and commercial source control systems including Subversion, Mercurial and git.

And regarding the JSP viewer, I think you are looking for a WYSIWYG editor for JSPs. I know that JBoss Tools provides such an editor, there might also be others.

JBoss In Action
Govinda Gopala

Joined: May 12, 2011
Posts: 18
Thank you very much peter

atleast now i know what i have to search for

you said CVS is inbuilt how to use/access that in indigo?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17421

Most version control systems are client/server systems. That is because version control goes hand-in-hand with team-based software development. So, in most - but not all - cases of version control, you need a version control server. CVS is one such system. You can run the server on a shared machine, or on your own local machine (it's not very big).

Actually, although CVS is built in, it's no longer as popular as it used to be, since CVS has a few limitations - you cannot archive empty directories, and CVS is totally incapable of tracking renamed files or deleted directories. So for the most part, people use Subversion (svn) these days. Subversion is a lot like CVS, but knows about the items I just mentioned. There are 2 different plugins to choose from for svn, but you do have to download and install one of them yourself, since they're not integrated into Eclipse. And, of course, you also would need to download and install the Subversion server.

There are other choices as well. Some open-source software projects (such as Xen) use Mercurial. Linus Torvalds developed Git, which is what the master source code for the Linux operating system uses.

And, of course, there are still a few people who use commercial source-code management systems such as SourceSafe and PVCS.

An IDE is no substitute for an Intelligent Developer.
Peter Johnson

Joined: May 14, 2008
Posts: 5852

I'll echo Tim's comments, I wouldn't bother setting up CVS. But if you don't want to set up a Subversion server, Git or Mercurial would be better. They maintain their repository on your PC in a hidden directory right next to the code you are working on. I usually use git for my toy and experimental projects, where I want to keep track of versions of code, because then I don't need access to a Subversion server.
Ravi Shankarappa
Ranch Hand

Joined: Jan 09, 2010
Posts: 55
Can SVN be setup on a same machine that I use for development?

Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

I agree. Here's the link:
subject: Version control in eclipse indigo
jQuery in Action, 3rd edition