Combining plugin projects and regular Java projects -- need best practices [message #335448] |
Wed, 08 April 2009 19:39 |
Dave Messages: 11 Registered: July 2009 |
Junior Member |
|
|
Howdy,
In the past when I've needed to convert a "regular java project" into an
Eclipse plugin-project, I've used one of the Wizards or PDE Convert tools
in Eclipse to accomplish this.
I'm now in a situation where other developers in my team have developed
several "regular Eclipse java projects" that they need for use in a
conventional java environment. I also need to use these projects, but in
an Eclipse RCP environment (ie...plugin-based).
Since their code continues to change, it is not practical to simply import
their projects or JARs into a plugin project. I need to be able to use a
plugin version of their project and keep up with new changes. (I do not
think I can make the other members of my team use plugin-based projects
instead of regular projects).
Is there any feature of Eclipse 3.4+ RCP/PDE that would help me do this? I
do not see a way to create a plugin project which can compile source from
an external (regular) project, etc. I also need to be able to perform a
headless build with PDE at the end of the day.
I'm looking for some "best practices" or some standard pattern, as this
must be a typical problem that certain developers face.
I realize one alternative is to create a special build procedure which
could build all the "regular" projects together into one plugin project.
However, I was looking for alternatives to this approach, perhaps through
some new feature in 3.4 that I am not aware of.
Any suggestions or ideas would be appreciated.
thanks,
-dave
|
|
|
Re: Combining plugin projects and regular Java projects -- need best practices [message #335449 is a reply to message #335448] |
Wed, 08 April 2009 20:02 |
Ed Merks Messages: 33264 Registered: July 2009 |
Senior Member |
|
|
Dave,
Comments below.
Dave wrote:
> Howdy,
>
> In the past when I've needed to convert a "regular java project" into
> an Eclipse plugin-project, I've used one of the Wizards or PDE Convert
> tools in Eclipse to accomplish this.
>
> I'm now in a situation where other developers in my team have
> developed several "regular Eclipse java projects" that they need for
> use in a conventional java environment. I also need to use these
> projects, but in an Eclipse RCP environment (ie...plugin-based).
> Since their code continues to change, it is not practical to simply
> import their projects or JARs into a plugin project. I need to be able
> to use a plugin version of their project and keep up with new changes.
> (I do not think I can make the other members of my team use
> plugin-based projects instead of regular projects).
Why not? It's so much easier to manage build paths using the PDE...
>
> Is there any feature of Eclipse 3.4+ RCP/PDE that would help me do
> this? I do not see a way to create a plugin project which can compile
> source from an external (regular) project, etc.
I'm not sure what you see a fundamental difference between the two. EMF
makes heavy use of the fact that the same exported jarred bundle can be
used both as a plugin and as just a plain old jar on the classpath...
> I also need to be able to perform a headless build with PDE at the end
> of the day.
> I'm looking for some "best practices" or some standard pattern, as
> this must be a typical problem that certain developers face.
>
> I realize one alternative is to create a special build procedure which
> could build all the "regular" projects together into one plugin
> project. However, I was looking for alternatives to this approach,
> perhaps through some new feature in 3.4 that I am not aware of.
Probably it will help to understand why you or the other members of the
team think plugin projects aren't just as capable as regular
projects... After all an exported bundle is just a jar with a
MANIFEST.MF which is a just standard Java thing...
>
> Any suggestions or ideas would be appreciated.
>
> thanks,
>
> -dave
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.03858 seconds