Can me and my other friend programmer work on same project with Eclipse synchronizing it, or we need to share the src every 10 minutes?
-
You need a version-control system such as SVN or (recommended) git. You commit all your files to the system and the system takes care of different edits by different people. It doesn't mean commiting every 10 minutes. – Marko Topolnik Apr 21 '12 at 13:07
-
@AshishAgarwal No, that question is way more specific than this one. – Marko Topolnik Apr 21 '12 at 13:15
6 Answers
You are looking for a version control system (VCS) like CVS, SVN, Git, Mercurial, etc.

- 3,154
- 3
- 35
- 45
You can certainly use the "Team" menu, which gives you access to version control systems. I would recommend Git or Mercurial (Distributed Version Control Systems).
EGit/JGit are now part of the mainstream plugins: you can install them using the "Indigo" repository (assuming Eclipse 3.7) in "Install new software...".
Centralised Version Control Systems (like CVS or SVN) also have plugins for Eclipse. They might, however, make it more difficult to branch and merge conflicts when required.

- 119,590
- 31
- 270
- 376
It seems like you are asking if Eclipse has support for sharing workspaces so that you and your friend can (in essence) cooperatively edit and run the same set of java files in real time.
Something like this - http://www.readwriteweb.com/cloud/2011/07/cloud9s-web-based-real-time-co.php
The answer is No. Eclipse doesn't support this directly.
However, there is an Eclipse plugin / project called Saros that claims to do this. And the Saros site has links to related projects that may be relevant.
(FYI - the relevant search terms are "collaborative programming".)

- 698,415
- 94
- 811
- 1,216
SVN or CVS - kind of version controlling system will help u to work together or u want to maintain your repository online then kindly check out https://stackoverflow.com/questions/59791/free-online-private-svn-repositories link.

- 1
- 1

- 40,646
- 13
- 77
- 103
I use SVN Notifier which sits in the system tray and notifies me every time the repository changes. And I can highly recommend it. It means you only update when there's something to update!
Alternatively you can set up a scheduled task/cron job to run svn update
in the appropriate directory every hour/day/whatever.
refer this Microsoft article on setting up a scheduled task.
You want a batch file called svnUpdate.bat or something which looks like this:
cd C:/path/to/your/working/copy
svn update
Get the scheduled task to run this as often as you like (once an hour seems sensible)
Make sure you have the command line version of svn installed (I use SlikSvn) and available on your PATH (in a command window type svn
and ensure it says 'Type svn help...' or similar.

- 6,215
- 12
- 58
- 91
-
Refer http://stackoverflow.com/questions/919822/how-do-i-automatically-update-a-subversion-working-copy – Ashish Agarwal Apr 21 '12 at 13:15
-
To achieve this there are many ways. the above one one possible way – Ashish Agarwal Apr 21 '12 at 13:18