Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Programmatically export plugin(Wondering how to programmatically replicate exporting a deployable plugin)
Programmatically export plugin [message #1008144] Sun, 10 February 2013 22:39 Go to next message
Phillip Drew is currently offline Phillip DrewFriend
Messages: 77
Registered: October 2012
Member
Basically I am looking for a programmatic way to replicate the export deployable plugin wizard (without the wizard).

I need to take some eclipse projects and turn them into .jar files in exactly the same way as manually exporting them through the Eclipse wizard would (considering the manifest, build.properties etc.)

If anyone can give me any pointers to good examples etc, or a hint of where in the API to start I'd be very much obliged.
Re: Programmatically export plugin [message #1008263 is a reply to message #1008144] Mon, 11 February 2013 10:36 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Hi,

I'm not very sure about what you're trying to achieve: is this something
you want in your IDE, or a headless build (command-line, Continuous
Integration friendly) ?

In case you want an Eclipse plugin, just mimic the action performed at
the end of the export wizard, and turn them into a command.

If you're looking for a headless build, I highly recommend you to use
Tycho, which relies on Maven to build your stuff. It's just a matter of
adding a pom.xml to your project in order to enable Tycho, and then
Maven+Tycho take care of everything (MANIFEST.MF, build.properties...)
to turn your projects into bundles.
--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Re: Programmatically export plugin [message #1008299 is a reply to message #1008144] Mon, 11 February 2013 19:54 Go to previous messageGo to next message
Curtis Windatt is currently offline Curtis WindattFriend
Messages: 166
Registered: July 2009
Senior Member
It is possible to run org.eclipse.pde.internal.core.exports.PluginExportOperation programmatically, but it is not API. It is not documented and not guaranteed to exist in future releases.

You would be far better off using PDE Build or Tycho (as per Mickael's suggestion). The plug-in export in the UI is actually done using PDE Build.
Re: Programmatically export plugin [message #1008813 is a reply to message #1008299] Wed, 13 February 2013 22:37 Go to previous messageGo to next message
Phillip Drew is currently offline Phillip DrewFriend
Messages: 77
Registered: October 2012
Member
I need to start the process off from a plugin installed in Eclipse (basically just saving the time of actually using the export wizard). Most of the documentation I've come across for PDE Build or Tycho seems to suggest they're not setup for what I'm trying to do?
Re: Programmatically export plugin [message #1015749 is a reply to message #1008813] Sat, 02 March 2013 07:47 Go to previous message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
On 02/13/2013 11:37 PM, Phillip Drew wrote:
> I need to start the process off from a plugin installed in Eclipse
> (basically just saving the time of actually using the export wizard).
> Most of the documentation I've come across for PDE Build or Tycho seems
> to suggest they're not setup for what I'm trying to do?

you might also want to take a look at buckminster,
http://www.eclipse.org/buckminster/

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it


Previous Topic:Invoke an eclipse plugin from a Java application
Next Topic:Improve existing debug view
Goto Forum:
  


Current Time: Tue Apr 16 22:23:34 GMT 2024

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

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

Back to the top