Need to setup Subversion in my local box - eclipse

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.

Related

Saving code online (Java 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.

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

Installing SVN plugin for Eclipse on Ubuntu

I am a brand new Linux user configuring my first-ever dev sandbox in Ubuntu. I have installed Java and Eclipse and am trying to get either Subversive or Subclipse (I don't have a preference either way) but have a few questions before I start that process.
I just opened Synaptic and downloaded subversion through it.
(1) I'm not really sure how SVN deploys locally. My understanding is that SVN has a client and a server; the server manages the repository(ies) and the clieent just sends commands to the server. Is this correct? If so, then what did I download through Synaptic? The client, and/or the server?
(2) Do these Eclipse plugins come with SVN (client or server...?) or do you have to pre-install SVN prior to installing these plugins? Basically: is SVN a pre-req for Subclipse or Subversive?
Looking back at these 2 questions if someone could first explain to me the architecture of SVN, then explain how that architecture translates to downloading SVN via Synaptic, and then how it translates to downloading/installing either Eclipse plugin, I would see the "big picture" a lot better.
Thanks for any and all help!
I use subclipse with svnkit. Both can be installed from update site of subclipse. Works fine. No other sotware needed. You need to set svnkit instead of javahl. This can be done in preferences.
Installation Help/install new software.
Update sites depending on the version:
http://subclipse.tigris.org/update_1.8.x
http://subclipse.tigris.org/update_1.6.x
Setting window/preferences. (pick svkit at bottom):
You downloaded the SVN server. You can have multiple SVN clients connecting to it.
The Eclipse plugins do not come with SVN. You need to download them.
Once you install the plugin, you can connect to SVN repositories. If you want to connect to your own SVN repository, of course you need to install SVN and create it first.
However, with just the plugin installed, you can connect to any existing public repositories, or any other SVN repository to which you have access.
Example: If you install the plugin, without installing SVN, you can connect to this Apache Repository.
Hope that answers your questions.
1º question: You are correct. About Synaptic, I think it's the server one.
2º question: No, it isn't! Eclipse's plugin it's the client and you don't need to install the SVN outside the IDE. It's all embedded.
More info that could be useful:
How to configure SVN in Eclipse using Assembla repository:
Create or open your existing project in Eclipse.
Be sure that the SVN's plugin it's correctly installed into Eclipse.
Copy your project's url at the Assembla's web site.
Click with the right button over the project > Team > Share Project > SVN
At the showed window, copy the path to your project into the URL field. Remember of /trunk at the end of URL.
Inform your user (watch out, it's your user, not your e-mail) and password into the required fields and check the option: Save Authentication, otherwise your login and password will be required all the time.
Click over Finish.
The commit's screen will open for you add some comment and upload the files of your project. Remember that even being a new project, Eclipse will create all the default folder's structure for the project.
Click at Ok and it's done! Your code will be uploaded to the Assembla's online server.
Now open the Assemblas's web site, access the trunk folder into your repository and then explore your project's source code. Try the comments and see the automatic format applied over the code so it become more readable.
Here it's some advantages of Assembla service:
Unlimited useres working in the same project.
Easiness of use, create, import projects and use all the service, besides of huge documentation and support.
1 GB of space.
Online access to the source code, with the possibility of comment it.
Encrypt data traffic.
Integration with many tools of the site, which are excellent, but payed separately.
Possibility of, at any moment, hire any of the payed services, which offers an incredible amount of benefits for a fair price. (Look at the services list).
If so, then what did I download through Synaptic? The client, and/or the server?
From the Subversion package description in Ubuntu 10.10:
This package includes the Subversion client (svn), tools to create a Subversion repository (svnadmin) and to make a repository available over a network (svnserve).
So you have both the client software, and the software to create and serve your own repositories.
(2) Do these Eclipse plugins come with SVN (client or server...?)
No, you need to install subclipse.
do you have to pre-install SVN prior to installing these plugins?
As long as you install it via a package, you don't have to worry about this. The package management in ubuntu will make sure that any dependencies are installed automatically. AFAIK all package management systems of gnu\linux distributions of note have this feature.
The easiest way:
Help --> Eclipse MarketPlace, search subclipse, click install, and then follow the instructions to finish up the installation process.
One way to clear up your confusion could be to first use a free hosted Subversion repository, such as http://assembla.com.
Then you can download all of the SVN clients, including the Subclipse plugin, and commit a test project to the SVN repository on Assembla.
I recommend Subclipse as it's allegedly supposed to play nicer with other Subversion clients, which means you'll be able to use command line SVN as well as the Team context menu in Eclipse.
http://subclipse.tigris.org/
After playing with this configuration and being sure your client side is correctly configured, then you could look into installing a subversion server locally. Eliminating variables by clearly separating client and server will definitely help you avoid confusion at first.

Best method for using Subclipse with an SSH Remote Project in Eclipse

I have a Remote Project (via SSH) set up in Eclipse.
The Subclipse plugin can't utilize the Remote Project's file system:
Subclipse forum post
As a result, you can't use the Subclipse features in a Remote Project.
Are these my only options for synchronizing a remote SSH folder in Eclipse?:
rsync / Unison to a local folder with Subclipse.
Distributed Revision Control System.
It appears that the support for DRCS's in Eclipse is still in it's early stages and a bit shaky.
Thanks for the help,
Derek
I ended up using a local development environment in conjunction with an integration environment. Synchronizing a local folder with a remote folder turned out to be too fragile and difficult.
The development environment and integration environment require a fair amount of setup and co-ordination. Ultimately though, it is worth the effort to have a proper development, integration and production environment work flow set up.

how I integrate TortoiseSVN with the netbeans6.8?

how I integrate TortoiseSVN with the netbeans6.8 ?
Its easy to connect between Netbeans and tortoiseSVN. If you are using windows:
You need to install subversion for windows (http://sourceforge.net/projects/win32svn/). After that you must set the path in win environment to include the subversion bin folder.
Install Tortoise client
Open Netbeans, and go to Windows > Versioning > Open the path where you install the subversion. or you can right click on your project folder and choose subversion.
Hope this help even its almost a year thread
TortoiseSVN is a standalone program. NetBeans has its own SVN integration. The two are unrelated, but you can use both of them interchangeably.
http://netbeans.org/kb/docs/ide/subversion.html
http://tortoisesvn.net/
What you need to do is install SVN - a version that is compatible with both Netbeans and Tortoise. Tortoise is built for Subversion 1.6.6 and Netbeans supports who knows what? They claim support for Subversion: 1.4.x, 1.5.x, 1.6.x on their website but if you google it you will see they seem to have a lot of problems with it.
My experience was that any performance gain from IDE integration was offset almost immediately by having to constantly troubleshoot it everytime SVN was upgraded. You will be better off doing your version control at the command line or just via Tortoise (which is lovely - I miss the shell integration now that I am using ubuntu and git).
Not sure you do. Perhaps you integrate NetBeans directly with Subversion? Subversion integration seems to be built in to NetBeans on my installation. TortoiseSVN integrates with Windows Explorer.