Export repository locations from STS or RAD - eclipse

Due to recent hardware failures, I am having to set up a new workspace for STS and I have a lot of repositories to add.
I have added them all, but I am trying to find a way to export the repository locations so that in the future, anyone on my team or myself could pull them out of my network drive and just import them in. This would save me some time. It wouldn't be a lot of time I know, but it would be nice.
So far, the only thing I have found was an Eclipse option that I could select File/Export, select SVN Repositories and voila. However, using STS or RAD, I am not getting the SVN Repository option in the export options. Is that Eclipse exclusive? If so, why would it be removed for STS and RAD?
Any help pointing me in the right direction is appreciated.

There are two different projects that can provide svn support in Eclipse: Subversive (from eclipse.org) and Subclipse (from tigris.org). STS includes Subclipse, but many people get Subversive when they install SVN support into a "plain" Eclipse. Subversive includes the ability to export your repositories when exporting preferences. My copy of STS, which has Subclipse 1.8.22, does not (like you observe). It appears that the feature was supposedly added to Subclipse a few years ago, according to this and this (bug tickets for subclipse), so I'm not sure what's going on there. Maybe the version of Subclipse that STS includes is out of date... who knows.
One potential workaround would be to export Team Project Set(s) for the project groups that you want to be able to easily import. That will automatically include the repository info, but has other advantages, too. Read more about them here and here.

Related

Cannot use Subclipse after installing

I have installed Subclipse in Eclipse EE Luna.
This is what my installation details look like :
Going on past experience, I would now expect a silo icon to appear next to all of my files as they are locally all part of a SVN directory structure.
Also when I right click a file or folder I expect lots of SVN options. All I see is this :
Which leads me to believe that is not switched on? not working maybe?
Does anyone know what I need to do to get it working? Other SVN tools immediately synch up with my projects.
(The neverending Eclipse configuration nightmare continues....)
You get that context menu for 'Team' if the current project is not being shared.
So right click on the Project and use 'Team > Share Project...' to set up the project in SVN.
Subclipse cannot automatically connect to projects that existed in the workspace before you installed Subclipse. For those projects, you have to use Team > Share Project. Subclipse will recognize that it is a SVN working copy and just "connect it".
That said, your option is grayed out. That means these projects are already "connected" to a Team provider as far as Eclipse is concerned. However, since there are no Team options on the menu, that means the team provider is likely not installed.
So my conclusion is that you had these projects linked to the Subversive plugin, not Subclipse. You will have to install that plugin so you can use Team > Disconnect ... or you need to delete these projects and then re-import them to the workspace.

Subclipse not showing the SVN data in package explorer and team options not available

I installed completely from scratch adt latest version with Juno, and I installed the latest subclipse plug-in (1.10) from the update site. However, once everything is installed I am not able to see the SVN data in the package explorer and in the context menu on the file no team option is available.
How can I investigate what's happening behind? I have not been able to find anything helping in google.
Some information from suggestions below:
I was having a previous installation of juno and I started from scratch in a new folder.
I am using the same workspace as before.
I have tried using subclipse alone, subversive alone and both installed at the same time.
The folder in workspace is recognized by Tortoise in windows, no corruption on SVN folder.
If you do not see the Share Project option in the Team menu, then I would guess the issue is that you are reusing an existing workspace and you had Subversive plugin, not Subclipse installed, and these projects were already connected to Subversive. So the Eclipse framework thinks it is associated with Subversive, but that plugin is not available to add its options to the Team menu.
Create a new workspace is one option. Install Subversive is another option.
UPDATE:
If you do see the Share Project option, then that is your answer. You need to take that option to "connect" your project to your SCM plugin. Projects that are already in your workspace when you install a new SCM plugin do not get connected to your SCM automatically. You have to take Team > Share Project to make the connection.
SOLUTION THAT WORKED:
For recognizing the existing installation of SVN you need to use Team > Share Project and then select the proper version control tool (SVN this case), automatically will associated SVN to the project.

Eclipse lost svn references for every project in workspace after forced close

I have a workspace with several projects connected to svn repositories via subclipse plugin. During a system restart, it seems eclipse was forcedly closed, and now I have restarted it, it seems the references to svn are lost. They are not disconnected, as there're interrogation signs as if every file was recently added, and .svn folders are still there. Also, the brackets that usually show the path in the repository are empty.
I could checkout the projects again and manually copy my last changes, but that's really annoying as there are about 10 projects.
Anyone experienced a similar issue and found a quick solution?
You subversion Eclipse plugin does not support svn 1.7. That happened to me too, when i upgraded the Tortoise shell integration and tried to commit the same project from Eclipse. The latest Subversive client plugin can be downloaded here: Subversive / Subclipse
It happened again today, and I fixed it by doing a Team->Refresh/Cleanup on the project. Can't believe I didn't try this before!
It happened to me today and "Team -> Share project" was enough.
Found it here: Restore Eclipse subversion project connection

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.

SVN not working in Eclipse

One day I pressed in Eclipse Help -> Check for Updates (and I learnt that I should Never Ever update a software which works fine.)
Then in a project that I used with SVN the whole submenu of "Team" and the little icons that showed that some files weren't commited, they all dissapeared.
I tried everything:
revert from Instalation History tab
uninstall from Installed Software tab
replaced the folder eclipse in Program Files with a new one downloaded from eclipse website and tried to install again
searched how to install it on the net
But in none of the cases above if I press Ctrl+N There is no SVN group;
If i right click on a project and select Team -> Share project, a window with CVS appears, but no SVN.
If I choose File -> Import I can't find SVN anywhere.
If I go to Help -> About Eclipse -> Instalation details I see at Instalation History in 25.06.2009, 09:59:08 GMT+03:00 (when SVN worked)
Eclipse IDE for Java EE Developers 1.2.0.20090621-0820
Subclipse (Required) 1.6.2
Subversion JavaHL Native Library Adapter (Required) 1.6.3
SVNKit Library 1.3.0.5847
In the Installed Software tab I have now installed
Eclipse IDE for Java EE Developers 1.2.0.20090621-0820 epp.package.jee
Subclipse (Required) 1.6.5 org.tigris.subversion.subclipse.feature.group
Subversion JavaHL Native Library Adapter (Required) 1.6.6 org.tigris.subversion.clientadapter.javahl.feature.feature.group
SVNKit Library 1.3.1.6109 org.tmatesoft.svnkit.feature.group
How can I make SVN to work?
Where does eclipse store its files, because when I changed the eclipse directory with a new one all my stuff was there (the ones that I installed with no success: SVN, Subversive, Subclipse, SVNKit, ...)
Subversive is my favorite SVN implementation in Eclipse because it works better than the others and it integrates neatly into the UI.
I suggest you follow these steps:
Download the most recent version of Eclipse (currently Galileo) and extract it to your desired installation location
Prior to running Eclipse, make sure you delete (or rename/relocate) your default workspace (under Windows this is workspace in your user directory)
Install the Subversive SVN Team Provider (as instructed by the Eclipse incubation website) using Eclipse's software installer:
Choose Help, then Install New Software...
Create a new download location and specify the following download URL: http://download.eclipse.org/releases/galileo
Locate Collaboration, expand it, then check Subversive SVN Team Provider (Incubation)
Proceed through the installation and accept the TOS
Restart Eclipse and Subversive should prompt you to select a SVN Connector. Reading the symptoms you describe, it sounds like you don't have a connector installed, or it isn't communicating with your team provider. The Polarion website has a guide for choosing the connector best suited for you.
If you aren't prompted to install a connector, you can always do so from the preferences screen:
If the above doesn't work for you, it seems that your workspace isn't cleaned out. Locate your default workspace and try getting things working without any projects before you continue.
You could then also try deleting the .eclipse directory in your user directory. And starting over from step 3.
The problem I had was that svn icons where not showing in the package explorer.
The solution for me was to delete the .metadata folder in the workspace folder (which will reset all your workspace including preferences and repository configurations)
After that all the icons appeared.
I had same issue when SVN connector was not able to connect SVN repository in Eclipse.
Then, I do the following step's :-
Right click on Project under Eclipse.
Go to Team -> share Project.
It's working :)
I found a problem related to installing plugins here. I also could not get the SVN stuff to show up in the preferences because of some bug with the software updater updating the Mylin plugins. You'll likely have to get your Eclipse installation straightened out first and you can do this by just using a new workspace. You don't have to blow away the .metadata folder if you point Eclipse temporarily at a new workspace folder. When the Eclipse installation is clean, you can start installing plugins again, but make sure to uncheck the box labeled Contact all update sites during install to find required software
Eclipse uses local SVN libraries that are part of an installed plugin for SVN support, be it SVNkit or JavaHL. Netbeans uses SVN libraries that are installed independently.
I have had this happen before with Eclipse and the various SVN plugins that it supports. The SVN plugin, for some reason, sometimes looses the SVN connection. Your best bet is to simply delete the project and re-check it out of svn. If you have changes that need to be committed you can use the command line.
Another problem you may have is that your plugin and your repository are out of sync in terms of version numbers. I have had problems before using a plugin designed for svn 1.6.x and a repository that was still at svn 1.4 or 1.5.
Just delete all projects from eclipse and Re-Import the all projects again.
It is working for me.
Just try it
If you want to completely start over with eclipse, you need to delete your workspace as well (the path you see when you first start eclipse). Just re-installing the eclipse files and pointing to the same default workspace will not change anything for you.
Your best bet is to remove eclipse and your workspace and start over because you probably inadvertently broke some other parts of the plug in while you were trying to fix your initial problem.
Even if you install everything as it is said, Subversive and SVN Connector (svnkit 1.x.x), in the project you may not see svn working. In my case I had to remove the project from workspace and import it again. Then it appears. (Refresh, clean did not worked).