Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Searching something like a "dropins project"
Searching something like a "dropins project" [message #555948] Mon, 30 August 2010 11:10 Go to next message
Robert K. is currently offline Robert K.Friend
Messages: 14
Registered: July 2009
Junior Member
Hi,

I am developing an OSGi application in a team. All our code is in a central
SVN repository. This works great for the bundles we develop but not for the
other required bundles. As far as I know they have to be installed into the
Eclipse dropins directory which raises two problems:

1. The dropins directory is not accessible from within eclipse and
therefore not updateable via Subclipse or any other Eclipse Subversion
plugin.

2. Any changes in the dropins directory are not recognized by Eclipse until
restart.

Why is it not possible to create a directory in the workspace that is
visible like a project (and can be updated via Subclipse)?

Robert
Re: Searching something like a "dropins project" [message #555972 is a reply to message #555948] Mon, 30 August 2010 12:33 Go to previous messageGo to next message
BJ Hargrave is currently offline BJ HargraveFriend
Messages: 60
Registered: July 2009
Member
You might want to check this out.

http://felix.apache.org/site/apache-felix-file-install.html
Re: Searching something like a "dropins project" [message #556083 is a reply to message #555948] Mon, 30 August 2010 18:05 Go to previous messageGo to next message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

Am 30.08.2010 13:10, schrieb Robert Kochem:
> Why is it not possible to create a directory in the workspace that is
> visible like a project (and can be updated via Subclipse)?

You can create a project in your workspace which is outside of your
project, i.e. anywhere on your local file system. Such a project can
also be shared in Subversion.

But I'm wondering if this is really the right approach or if "Target
Platforms" is what your are looking for. Do you really need the bundles
to be _installed_ in your IDE or do you just need them to compile
against and to build your final product?

-Gunnar

--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
Re: Searching something like a "dropins project" [message #556645 is a reply to message #556083] Thu, 02 September 2010 08:16 Go to previous messageGo to next message
Robert K. is currently offline Robert K.Friend
Messages: 14
Registered: July 2009
Junior Member
Gunnar Wagenknecht schrieb:

> Am 30.08.2010 13:10, schrieb Robert Kochem:
>> Why is it not possible to create a directory in the workspace that is
>> visible like a project (and can be updated via Subclipse)?
>
> You can create a project in your workspace which is outside of your
> project, i.e. anywhere on your local file system. Such a project can
> also be shared in Subversion.

Yes, but how to tell Eclipse to recognize the exported bundles provided by
the libraries in this project?

> But I'm wondering if this is really the right approach or if "Target
> Platforms" is what your are looking for. Do you really need the bundles
> to be _installed_ in your IDE or do you just need them to compile
> against and to build your final product?

As I am not developing Eclipse plugins I generally would not need to load
them into Eclipse but this is AFAIK the only way to access the library and
their exported bundles from within Eclipse.

Robert
Re: Searching something like a "dropins project" [message #556767 is a reply to message #556645] Thu, 02 September 2010 14:45 Go to previous messageGo to next message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

Am 02.09.2010 10:16, schrieb Robert Kochem:
> As I am not developing Eclipse plugins I generally would not need to load
> them into Eclipse but this is AFAIK the only way to access the library and
> their exported bundles from within Eclipse.

But you are developing OSGi bundles, arn't you? In that case you should
make yourself familiar with target platforms.

http://help.eclipse.org/helios/topic/org.eclipse.pde.doc.use r/concepts/target.htm

That's what you need.

-Gunnar

--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
Re: Searching something like a "dropins project" [message #556923 is a reply to message #556767] Fri, 03 September 2010 08:05 Go to previous messageGo to next message
Robert K. is currently offline Robert K.Friend
Messages: 14
Registered: July 2009
Junior Member
Gunnar Wagenknecht schrieb:

> But you are developing OSGi bundles, arn't you? In that case you should
> make yourself familiar with target platforms.

Thanks for the hint, maintaining a target platform in SVN is possible if
you create a project and add it's content to the Locations via variable:

${workspace_loc}/project-name

Additionally the target platform definition can be "moved" to a file in the
same project. So far so good.

Buf I failed to use the new defined target platform. How du I link a
OSGi/Plugin-project to a specific target platform. I only found the
possibility set a target platform for an whole workspace which means I
would have to maintain separate workspaces for each OSGi project. This
seems very complicated to me.

Why can't I just add the target platform as "virtual dependency" (something
like a search path) to a plugin project?

Robert
Re: Searching something like a "dropins project" [message #556998 is a reply to message #556923] Fri, 03 September 2010 14:29 Go to previous message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

Am 03.09.2010 10:05, schrieb Robert Kochem:
> Buf I failed to use the new defined target platform. How du I link a
> OSGi/Plugin-project to a specific target platform. I only found the
> possibility set a target platform for an whole workspace which means I
> would have to maintain separate workspaces for each OSGi project. This
> seems very complicated to me.

You put all the bundles you need into your target platform. The PDE
classpath container will pick the dependencies for you based on the
settings in your MANIFEST.MF

-Gunnar


--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
Previous Topic:Customize dropins
Next Topic:Question about using services concurrently
Goto Forum:
  


Current Time: Sat Apr 20 05:45:52 GMT 2024

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

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

Back to the top