Saving code online (Java Eclipse) - eclipse

Currently I'm saving an online copy of my code on dropbox. I was wondering if there is any other convenient option, such as an Eclipse plugin (that can maybe do this automatically?).
Note: The project's code is private and I'm thus looking for an option that doesn't make it public.

have you considered putting your code in an online repository? BitBucket gives you free unlimited Git or Mercurial repositories and they both work with Eclipse. You can also use SVN, and eclipse has a plugin for it with the name of Subclipse. and it works perfect.

There are several free source management systems out there.
However - if you want to use them freely you'll need to opensource your code.
Check out github or googlecode for example.

You are looking for a SCM tool (Source Control Management). GIT or Subversion are the things you are looking for. Have a look at Github.com or Google Code (ups sorry I didn't notice that you're looking for a private solution). BitBouquet is probably the best public server for closed source. If you have your own server (i.e. on a cloud), or you may install GitBlit or Gitosis tools; for subversion you can set up your own server following my tutorial.
Eclipse supports CVS and Subversion built-in, afaik. Maybe latest versions also have git; by the way there is Egit eclipse plugin to support Git.

Related

Locally saved revisions with eclipse

I was searching for a plugin for Eclipse that will help me save revisions of my code, locally on my computer. All I found was subversion plugins.
Thnx,
Royi
I recommend eGit, it does not require any server-side infrastructure in its smallest setup. I use it for my personal stuff as well.
Eclipse does indeed save versions as Local History, but it's not as advanced as Subversion (SVN) or CVS.
If you are really interested, you can Setup an SVN Server on your own machine

mac eclipse and version control

I am looking for an svn client and host that I can easily set up to work on my mac in eclipse (plugin).
git recommendations will also be useful although i haven't tried it yet.
since there is only a small team of developers I would prefer a cheaper/free solution (advanced features like merging are not necessary)
Thanks
The interesting thing with Git is that you don't need to install anything:
Just download one of the latest Eclipse distributions, and you will have EGit plugin already included in that Eclipse.
Since it is a DVCS, there is no notion of "client" or "server": your repo will be local and will include the full history.

How do i create a local CVS repository in Eclipse Helios?

And also how do versioning can help me manage my project ?
You create a CVS repository outside of Eclipse. Subversion and Git are newer source code version control systems you might want to consider.
A source code version control system maintains more than one version of your source code. This is useful when you want to have software versions, as well as when you want to back out a change you made to an earlier version.
As far as installation instructions, here's an online CVS manual.

version control projects in Eclipse

Say I have Eclipse installed in office and home. Both are Eclipse version 3.5 but may have slightly difference, like plugins version. I'd like to commit the code to online repo when get off work and then checkout at home.
What would be a possible solution? github? sourceforge? Are they free?
Would those slightly difference in Eclipse cause any problem? Since I might commit whole project folder which consist some configurations.
Can the community explain a bit or suggest some keywords? I will look up more online. Thanks.
There are a number of places that provide free source control hosting for open source projects. If this is a commercial project, you will need to either host your repository yourself and make it available both in the office and from home, or use a commercial source control hosting service.
Personally I use Subversion and the wush.net subversion hosting service. Wush has been around for a long time and are not too expensive, but a google search e.g. "subversion hosting" will turn up many other options.
Small differences in the subversion plugin version for Eclipse can cause problems. Make sure you're using the same plugin version. Small differences in Eclipse version should not matter.
There are a number of free SCM's available to open source projects.
If you were to choose a CVS or SVN based one, then the slight difference in your plugin versions shouldn't make a difference.
However if you were to go for one of the increasingly popular DCVS solutions such as git, mercurial or bazaar, then your local copy has a full copy of all of the history, so you could get by with creating a local repo on a memory stick making more commits at home and then synching it when your are connected to the office or the internet depending on where you decide to host your central repo.

Need to setup Subversion in my local box

I am using Windows7 and I do lot of Java coding in Eclipse. But I dont have a version control system. I have heard of Subversion being a very popular VCS, so I would like to set it in my local box. Can you please give me some pointers on where to start/look at?
I would like to checkin/checkout files using Eclipse. Please guide me.
Thanks
If you're on windows it's difficult not to go with VisualSVN. As for Eclipse you can get an eclipse plugin here
Subclipse http://subclipse.tigris.org/ is a plugin for eclipse that allows you to checkout / in files inside of the eclipse IDE.
It doesn't get SVN set up on your machine, you'll need to install svn and set up a repository first, but the integration with eclipse is nice to have.
If you're the only person who needs to access the repository, you can create a svn repository on your filesystem and you won't need to install and run a server.
http://vincenthomedev.wordpress.com/2007/10/15/setup-svn-local-repository-step-by-step/
Subclipse is a great SVN plugin for Eclipse, you might also find TortoiseSVN very handy as well. Both are very easy to use.
First, you'll need a Subversion repository, which can either be a remote server on the internet (google "free subversion repository"), or a server running locally on your machine, or a machine on your lan. For the last one, you can use VisualSVN Server.
Once with a SVN repository setup, you have to install a SVN client to work with it. I recommend TortoiseSVN for general stuff, but I'm pretty sure Eclipse has SVN support builtin, so once you've setup a repository server, you just have to configure the client on Eclipse to connect to it.