Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » build plugin with command line
build plugin with command line [message #889638] Tue, 19 June 2012 12:37 Go to next message
Laurent Extier is currently offline Laurent ExtierFriend
Messages: 3
Registered: June 2012
Junior Member
Hi All,

I have a plugin source and I would like to build it automatically by the command line.

I don't know how to do that, is there someone that can give me the different steps for that ?

Thanks,

Laurent
Re: build plugin with command line [message #890234 is a reply to message #889638] Thu, 21 June 2012 14:35 Go to previous messageGo to next message
Martin Skorsky is currently offline Martin SkorskyFriend
Messages: 112
Registered: July 2009
Senior Member
One way is to use the PDE headless build. See http://www.eclipse.org/articles/Article-PDE-Automation/automation.html or http://www.eclipse.org/pde/pde-build/.
Re: build plugin with command line [message #890240 is a reply to message #889638] Thu, 21 June 2012 15:01 Go to previous messageGo to next message
Laurent Extier is currently offline Laurent ExtierFriend
Messages: 3
Registered: June 2012
Junior Member
Thanks,

I have found this document.

Currenttly I have a problem. because I have generated the build.xml by right clicking on my plugin.xml and PDE Tools-> Create Ant Build file.

the default target is build.jars, but when executing this target I have only the classes of the plugin compiled but no jar generated. The target doesn't reference any <jar ant task.

An idea ?

Laurent
Re: build plugin with command line [message #890265 is a reply to message #889638] Thu, 21 June 2012 16:35 Go to previous messageGo to next message
Laurent Extier is currently offline Laurent ExtierFriend
Messages: 3
Registered: June 2012
Junior Member
Thanks for your help,

In fact I have generated a build.xml by using PDE Tools -> Generate Ant build file

And when I execute it, it generate only a @dot directory with the classes compiled but not jar plugin.

I don't understand why.

Any idea ?

Thanks,

Laurent
Re: build plugin with command line [message #890409 is a reply to message #890265] Fri, 22 June 2012 08:51 Go to previous message
Martin Skorsky is currently offline Martin SkorskyFriend
Messages: 112
Registered: July 2009
Senior Member
in http://www.eclipse.org/articles/Article-PDE-Automation/automation.html use section 'Build headless'. To start create the files allElements.xml and build.properties from the templates mentioned in section 'Build phases'.

There is also documentaiton on this at http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.pde.doc.user/tasks/pde_product_build.htm
Previous Topic:Hiding text in Editor
Next Topic:[JADE] A lot of instance of JADE's agent in Eclipse
Goto Forum:
  


Current Time: Fri Nov 28 03:21:49 GMT 2014

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

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