svn support in eclipse rcp application - java

I need to add svn support to my own eclipse rcp application. I need to show commit history and checkout specific version of a file from svn server.
Do I need to use sublipse or subversive or svnkit is enough?

Subclipse and Subversion do the same thing. Subclipse is from SVN and Subversive is from the Eclipse camp. SVNKit is just the connector. I use Subclipse from the SVN camp primarily because it is built by the SVN community and usually always works flawlessly. Subversive is a less reliable plugin on the SVN side IMHO..
Subclipse also supports pretty much all the SVN detail level attributes and works right out of a SVN Perspective so you can manage everything from the IDE and Project.

You can use SVNKit if you are just looking for an API and you want to do all the work yourself to call the API and build a UI for the SVN features you want. If you want to reuse the UI and work that was done already, then you would need to use Subclipse and drive its views and commands from your code.

Related

Conflict in Eclipse Mars with Maven and SVN?

I've been using Eclipse for programming and testing Storm just fine, however, I created an SVN account, where I commit the project, and for that, I needed the SVN plugin for Eclipse. It worked, but after that, i get this message on a popup error window when I try to launch:
Referenced classpath provider does not exist:
org.eclipse.m2e.launchconfig.classpathProvider
I realised that in the "configure" menu, the option "convert to maven project" (right click on project) disappeared. The "runAs" options for the java topology doesn't run with this error, and the "pom.xml" cannot be run as maven.
Possible fix tried:
I tried to reinstall all maven builders to Eclipse(it doesn't let me to unninstall).
I tried to rebuild config by:
mvn eclipse:clean eclipse:eclipse
None of this worked, my Eclipse version is:
Eclipse Java EE IDE for Web Developers.
Version: Mars.1 Release (4.5.1)
Build id: 20150924-1200Eclipse Java EE IDE for Web Developers.
On Ubuntu Gnome 14.04.
As I said, it was running perfect until I installed SVN plugin.
EDIT
I realised that I have installed two plugins of m2e:
Maven integration for Eclipse (Luna and newer)1.5
Maven integration for Eclipse (Luna)1.5.0
Both in marketplace, but I have no way to uninstall them, it says:
[plugin] cannot be fully uninstalled because other installed software requires it. The parts that are not required will be uninstalled.
EDIT 2
In the "Installation History" within the "Help>Installation details" menu, I saw that "Maven integration for Eclipse (Luna)1.5.0" was installed by (or with) SVN plugin, so I think the problem is there, nevertheless, I can't uninstall it as I said in my first "EDIT".
If anyone has a clue about what is happening, please, help me.
Thanks in advance!
We use Subclipse in Eclipse (Kepler and Mars) without problems (Did you install Subclipse or Subversive?).
To check out projects as Maven projects, you should install a m2e connector. Subversive has one in the "Discovery" catalog while for Subclipse there is a separate update site.
If your eclipse plugin configuration is somehow broken, I would start again with a virgin eclipse (Mars.1, Mars.2 or Neon) which already contains m2e in version 1.6 or 1.7. Then you can install Subclipse or Subversive and try again.
Workaround proposal: simply don't deal with SVN within eclipse!
Instead, you can use "git svn" on ubuntu.
Meaning: with git svn you can create a local git repository, that allows you to commit/fetch to a remote SVN server. But to your eclipse ... that repository looks a common of garden GIT repository.
In other words: using that tool, you can still connect to SVN (although I don't understand why anybody would want to do that in 2016); but you have all the features of git available to you as well (including full support within eclipse; without installing any additional plugins).

Is possible integrate TFS with VisualSVN?

In my work they are using a system in Java that works as a TFS. We also use a plugin in eclipse to handle the versions of the projects. My question is if I can use VisualSVN, instead of the plugin, for better management of versions. In short, is it possible to use properties of TFS in VisualSVN ?. If possible, what can be used ? Thanks.
SVN is a version control system. TFS is project planning, version control, build, testing, release, and so on in one package. Basically, it's a superset of SVN.
You can use all of the non-source control while keeping your source code in another version control system, but it would be hacky and awkward and require a bunch of hoop-jumping that just isn't necessary. You can migrate source code from SVN to TFS very easily, with fairly minor disruption.
TFS has two options for source control: TFVC, which is similar to SVN, and Git, which is not.
For Java developers, there's a plugin for Eclipse called Team Explorer Everywhere that gives them an IDE-integrated TFS experience.

How to setup subversion (and which - e.g. subcliplse / subversive) for android / java eclipse on LAN [without internet connection / (url/uri)]

I didn't knew what is subversion.
When came to know it's importance for more than one developer. The question arose.
How to set it up for use.
We are developing in Eclipse for Android. Details of installation:
Android DDMS 22.6.2.v201403212031-1085508
Android Developer Tools 22.3.0.v201310242005-887826
Android Development Tools 22.6.2.v201403212031-1085508
Android Hierarchy Viewer 22.6.2.v201403212031-1085508
Android Native Development Tools 22.6.2.v201403212031-1085508
Android Traceview 22.6.2.v201403212031-1085508
JavaHL 1.7.4 Win32 Binaries (Optional) 2.3.0.I20120316-1700
Native JavaHL 1.7 Implementation (Optional) 2.3.0.I20120520-1700
Subversive Revision Graph (Optional) (Incubation) 0.7.9.I20120210-1700
Subversive SVN Connectors 2.3.0.I20120520-1700
Subversive SVN Integration for the Mylyn Project (Optional) (Incubation) 0.7.9.I20110602-1700
Subversive SVN JDT Ignore Extensions (Optional) (Incubation) 0.7.9.I20111119-1700
Subversive SVN Team Provider (Incubation) 0.7.9.I20120520-1700
Subversive SVN Team Provider Localization (Optional) (Incubation) 0.7.9.I20120316-1700
Subversive SVN Team Provider Sources (Incubation) 0.7.9.I20120520-1700
SVNKit 1.7.4 Implementation (Optional) 2.3.0.I20120520-1700
Tracer for OpenGL ES 22.6.2.v201403212031-1085508
Eclipse for Java details of installation:
Eclipse Standard/SDK 2.0.2.20140224-0000
Swing Designer 1.7.0.r43x201405021531
Swing Designer Documentation 1.7.0.r43x201405030444
SWT Designer 1.7.0.r43x201405021526
SWT Designer Core 1.7.0.r43x201405021519
SWT Designer Documentation 1.7.0.r43x201405030426
SWT Designer SWT_AWT Support 1.7.0.r43x201405021546
SWT Designer XWT Support (requires Eclipse WTP/WST) 1.7.0.r43x201405021548
WindowBuilder Core 1.7.0.r43x201405021445
WindowBuilder Core Documentation 1.7.0.r43x201405021506
WindowBuilder Core UI 1.7.0.r43x201405021455
WindowBuilder GroupLayout Support 1.7.0.r43x201405021517
WindowBuilder Java Core 1.7.0.r43x201405021448
WindowBuilder XML Core (requires Eclipse WTP/WST) 1.7.0.r43x201405021458
I have tried my best. There is no proper help available anywhere that could explain me everything to set up SVN from scratch.
After googling a lot I came to conclusion to either use subclipse or subversive (no TortoiseSVN as it doesn't support eclipse 100%).
Again had to google a lot to get subversive plugin installed in eclipse.
After getting it installed, I started -
trying with import project -> SVN -> Project from SVN.
On clicking next it asks for URL.
We have not posted our files any where on internet.
We want to use subversion on LAN.
This led me to install iis (internet information service) in windows 7
But I could not manage to sync all my tryings.
It would be very helpful if experienced one's could write or redirect me to clear my question which are as follows
Am i correct about using subclipse or subversive and not tortoise svn?
If so, which SVN we should use for?
Eclipse for Android applications
Eclipse for Java applications
How to use that selected SVN on LAN (without posting our source code files over internet)
If we are supposed to use IIS on windows
How to get our files from IIS site to subversion management?
I have genuinely tried to find step by step information. But couldn't.
Please explain step by step.
Time will take it's own course on us.
Till than let us know the basics.
I was new to Eclipse / Java.
Here is a good explanation to what is subversion control.
After being with eclipse for a long time i decided to go with 'subclipse' and found out this webpage that answered my question no.3.
http://grumpygeekwrites.wordpress.com/2013/10/08/the-idiots-guide-to-setting-subversion-svn-server-on-windows/
What was asked in Q.4 and Q.5 wasn't required.
Eclipse and subversion are two totally different things.
On a SVN server, you can keep any kind of file (Best practices suggest to store mostly source code but in any king of languages).
You can install Tortoise on your computer AND subclipse/subversive on Eclipse, it works fine and it allow you to store files that are not related to an Eclipse project.
With Tortoise, you will see all your sync files in your OS explorere whereas with the Eclipse plugins, you can only see it in the "Team" view.
Anyway, subversion and subclipse works for Ecplise. they are not dependant of the other plugins you use in Eclipse like Android DK.
Here is an exemple on how to create a SVN repository: http://hamrotechtips.blogspot.fr/2008/03/setup-of-local-lan-svn-server.html

Eclipse IDE for (Java and reports, PHP and Android)

There are different version of eclipse for different development environment.
My question is IF IDE remains same then why different versions, and if someone want to use all supported environments in single IDE how he/she can achieve that.
I want to use eclipse as single IDE for PHP, Java & Reports and Android development, instead of using different installation of eclipse.
Somebody helps me or refer me some link, it's quite confusing!
All the versions of Eclipse on the main site download page are the same version of Eclipse, but packaged with different sets of plugins. You can always install more features in Eclipse by installing more plugins.
You can have a single installation of Eclipse and use it for all your development needs - depending on your tastes however, it may sometimes be more manageable to have separate installations of Eclipse for different tasks (when there are a lot of plugins, Eclipse can take noticeably more time to start.)
There ARE different versions of Eclipse out there. But if we stick to one version and look at why there are different variants to download it's basically just that they come prepackaged with a specific component. So if you would like to use your Eclipse for C++ development you can get going with on single download. Instead of downloading the main IDE and then adding the module to support C++.
But after you install Eclipse, with any prepackaged modules, it's easy to add new ones. Say you have Zend Studio which is a PHP IDE based on Eclipse. You can still add all other modules supported by the version of Eclipse that Zend Studio is based on. For instance the Android SDK kit for Android development. You can add most modules by doing a search for them and finding the url to it's update site. Then click Help->Install New Software. Then you click Add and add the URL of the Update site of the module you wish to install.
Then you can select it from the Work with drop-down and it should appear in the list. Select it and click Next.
That way you can install almost all available modules for Eclipse. Note that sometimes you can run in to compatibility issues between installed modules and dependency problems. But most of the time it works fine.
They are not different versions, just the same backend with plugins for the particular language. Just that the specific versions are configured for best use with the language specified. If you want to use more languages than the default one in the eclipse you downloaded, just download the plugins you require and install in your installation of eclipse
Eclipse is plugin based IDE and these plugins may not like each other sometimes. It will be better to use more installations. In fact if you are developing Java and PHP you will need only 2 of them.
STS is a good Java toolkit especially if you work with spring.
If you new to Eclipse you should know that it can go crazy couple of times per month if you install too much and it is very annoying to see that one day your webapp is deploying and second day no...
Keeping installation separated you will have better control.

Why does my Eclipse plugin show up in Eclipse RCP version, but not in other versions like Java and Java EE?

I have developed an Eclipse plugin using the RCP version of Eclipse. I have used the plugin via a 'run application' launch as well as by exporting the plugin as a JAR and putting it in the plugins directory of Eclipse RCP.
The problem is that when I put the plugin JAR in the plugins directory for my Java version or Java EE version of Eclipse, it doesn't seem to be loaded as one of the plugins. I go to the preferences to look at the pref. page for my plugin and it isn't even listed.
This is my first Eclipse plugin, so I don't have much experience using plugins across different distributions of Eclipse and so forth. Any ideas of how to fix this? I would like to be able to use the plugin in any Eclipse (Java, Java EE, RCP, etc.)
Try putting your plugin under install/dropins/plugins directory. As of Eclipse 3.5, adding plugins directly to the root plugins directory isn't supported.
This should be enough for you to experiment further, but this isn't a good way to install finished plugins. The best way to install plugins is via a published repository. You will need to create a feature to hold your plugin and then use Export -> Plug-in Development -> Deployable features wizard or investigate command line build solutions such as pdeBuild.

Categories