[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: Debasis Mishra <debasis1982_at_gmail.com>
Date: 2007-11-23 10:22:39 CET

Hi Mark Phip,
  Thanks a lot for the reply.But I think I am missing some jar or plugin.
  I am giving you the list of plugin that I have added in the built path.

  1.org.tigris.subversion.javahl.win32_1.2.0
  2.org.tigris.subversion.subclipse.core_1.2.0
  3.org.tigris.subversion.subclipse.doc_1.2.0
  4.org.tigris.subversion.subclipse.mylar_1.0.1
  5.org.tigris.subversion.subclipse_1.2.0
  6.Javasvn.jar
  7.svnClientAdapter.jar

 1.My question is any other plugin or jar I need to add in the build path?

 2.I want to checkin and check out my project on a single button click if
there is no conflict,thats why I am using subclipse API to communicate to
SVN.or is there any other approach for that?

Thanks in advance,
Debasis

On 11/22/07, Mark Phippard <markphip@gmail.com> wrote:
>
> 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?
>
> --
> Thanks
>
> Mark Phippard
> http://markphip.blogspot.com/
>
Received on Fri Nov 23 11:41:03 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.