[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [Subclipse-users] Using SubEclipse API

From: Mark Phippard <markphip_at_gmail.com>
Date: 2007-11-22 18:14:37 CET

On Nov 22, 2007 2:21 AM, Debasis Mishra <debasis1982@gmail.com> wrote:
> Hello
> I have created a sample appplication to interact with "Subversion".Its a
> plugin project only.
> All the Steps are given below
> Steps :
> 1.For that I have added all subeclipse plugin in the dependency.
> 2.I have just reading one .java file from my workspace and trying to
> Compare that .java file with the Head revision.(Programmatically)
> Code snippet is given below
> IWorkspace workspace = ResourcesPlugin.getWorkspace();
> System.out.println(workspace);
> IFile file = workspace.getRoot().getFile(new
> Path("D:\\workspace\\Hello.java" ));
> final ISVNLocalResource localResource=
> SVNWorkspaceRoot.getSVNResourceFor(file);
> I am getting the NoClassDefoundError for SVNWorkspaceRoot. ClassLoader vis
> not able to find the class SVNWorkspaceRoot.
> Anywhere anything I am missing?

Is this solely a runtime problem or are you seeing this in the
development environment too (compiler error?). I know that due to the
"JAR within a JAR" deployment of our core plugin in 1.2.4 you have to
have it checked out in order to develop against it.

At runtime, it would seemingly be a dependency problem. Maybe you
have to force the plugin to load? Try SVNPluginProvider.getPlugin()
before you run this other code?

Mark Phippard
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Thu Nov 22 18:14:51 2007

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.