Skip to main content



      Home
Home » Newcomers » Newcomers » Use package from subclipse plugin
Use package from subclipse plugin [message #258490] Fri, 13 June 2008 10:05 Go to next message
Eclipse UserFriend
Originally posted by: georg.speidel.flexis.de

Hello @ all,

I'd like to write a plugin helping to work with SVN. As the future users
all have the subclipse-plugin already installed, I plan to use the package
"org.tigris.subversion.svnclientadapter.commandline" used by this plugin
to execute svn-commands.
To write my plugin, I installed subclipse 1.2.4 and added
"org.tigris.subversion.subclipse.core" to the Require-Bundle of the new
plugin's manifest.

Unfortunately, this not seems to be enough to use the commandline-package
via "import" in my new classes. The manifest of the subclipse-plugin
contains the path "/lib/svnClientAdapter.jar" in the "Bundle-ClassPath"
entry and the respective jar containing the class-files I need.

Has anybody a clue what more is required to use the commandline-package of
subclipse?

Thanks in advance!
Re: Use package from subclipse plugin [message #258500 is a reply to message #258490] Fri, 13 June 2008 10:14 Go to previous messageGo to next message
Eclipse UserFriend
Does the subclipse plug-in's manifest "export" the packages you need?
i.e. are there Export-package entries?

Wayne

On Fri, 2008-06-13 at 14:05 +0000, Georg Speidel wrote:
> Hello @ all,
>
> I'd like to write a plugin helping to work with SVN. As the future users
> all have the subclipse-plugin already installed, I plan to use the package
> "org.tigris.subversion.svnclientadapter.commandline" used by this plugin
> to execute svn-commands.
> To write my plugin, I installed subclipse 1.2.4 and added
> "org.tigris.subversion.subclipse.core" to the Require-Bundle of the new
> plugin's manifest.
>
> Unfortunately, this not seems to be enough to use the commandline-package
> via "import" in my new classes. The manifest of the subclipse-plugin
> contains the path "/lib/svnClientAdapter.jar" in the "Bundle-ClassPath"
> entry and the respective jar containing the class-files I need.
>
> Has anybody a clue what more is required to use the commandline-package of
> subclipse?
>
> Thanks in advance!
>
Re: Use package from subclipse plugin [message #258525 is a reply to message #258500] Fri, 13 June 2008 12:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: georg.speidel.flexis.de

Wayne Beaton wrote:

> Does the subclipse plug-in's manifest "export" the packages you need?
> i.e. are there Export-package entries?
Yes, the export-definitions are made
Re: Use package from subclipse plugin [message #258531 is a reply to message #258525] Fri, 13 June 2008 12:54 Go to previous messageGo to next message
Eclipse UserFriend
I can repeat the problem on Eclipse 3.3.1.1. What version are you using?

I think this might be a regression of bug 63576. I will investigate it a
little further.

My working theory is that this is a problem with the PDE. It should work
fine in runtime. To trick the PDE, try extracting the
svnClientAdapter.jar from the plug-in and manually adding it to your
Java build path (as an external JAR). At runtime, Equinox should find
the JAR in the org.tigris.subversion.subclipse.core bundle.

Wayne

On Fri, 2008-06-13 at 16:26 +0000, Georg Speidel wrote:
> Wayne Beaton wrote:
>
> > Does the subclipse plug-in's manifest "export" the packages you need?
> > i.e. are there Export-package entries?
> Yes, the export-definitions are made
>
Re: Use package from subclipse plugin [message #258551 is a reply to message #258531] Fri, 13 June 2008 14:00 Go to previous messageGo to next message
Eclipse UserFriend
It seems that another workaround is to import the Subclipse project into
your workspace.

I'm pretty much convinced that this is a bug in PDE, but different from
63576.

The symptoms seem to be that JARs contained within a plug-in in the
Target Platform are not detected by the PDE. I've been able to replicate
this problem with other bundles.

I've opened bug 237127 [1] to address this.

HTH,

Wayne

[1]https://bugs.eclipse.org/bugs/show_bug.cgi?id=237127

On Fri, 2008-06-13 at 12:54 -0400, Wayne Beaton wrote:
> I can repeat the problem on Eclipse 3.3.1.1. What version are you using?
>
> I think this might be a regression of bug 63576. I will investigate it a
> little further.
>
> My working theory is that this is a problem with the PDE. It should work
> fine in runtime. To trick the PDE, try extracting the
> svnClientAdapter.jar from the plug-in and manually adding it to your
> Java build path (as an external JAR). At runtime, Equinox should find
> the JAR in the org.tigris.subversion.subclipse.core bundle.
>
> Wayne
>
> On Fri, 2008-06-13 at 16:26 +0000, Georg Speidel wrote:
> > Wayne Beaton wrote:
> >
> > > Does the subclipse plug-in's manifest "export" the packages you need?
> > > i.e. are there Export-package entries?
> > Yes, the export-definitions are made
> >
>
Re: Use package from subclipse plugin [message #258582 is a reply to message #258551] Sat, 14 June 2008 05:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: georg.speidel.flexis.de

Dear Wayne,

thanks for replying and presenting a workaround so soon :)
If I add the package as external JAR or import the project, do I have to
include the package to the JAR when exporting my plugin?
Re: Use package from subclipse plugin [message #258590 is a reply to message #258582] Sat, 14 June 2008 12:11 Go to previous messageGo to next message
Eclipse UserFriend
No. You only need to fool the development environment. The runtime
should work fine. Having said that, I recommend early testing.

Wayne

On Sat, 2008-06-14 at 09:54 +0000, Georg Speidel wrote:
> Dear Wayne,
>
> thanks for replying and presenting a workaround so soon :)
> If I add the package as external JAR or import the project, do I have to
> include the package to the JAR when exporting my plugin?
>
Re: Use package from subclipse plugin [message #258655 is a reply to message #258590] Mon, 16 June 2008 06:54 Go to previous message
Eclipse UserFriend
Originally posted by: georg.speidel.flexis.de

Hello Wayne,

the workaround is working around just fine for PDE :)
Yet, while debugging the referenced library, the sources are not found
(please see my post
http://www.eclipse.org/newsportal/article.php?id=24379&g roup=eclipse.newcomer#24379)

Thanks for helping! :)
Previous Topic:Font Size in Package Explorer
Next Topic:trouble editing .project to manually add linked folders
Goto Forum:
  


Current Time: Wed May 07 15:37:07 EDT 2025

Powered by FUDForum. Page generated in 0.09969 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top