Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » building p2 headless without a product/application(building p2 headless without a product/application)
building p2 headless without a product/application [message #655100] Fri, 18 February 2011 10:27 Go to next message
Ch. S. is currently offline Ch. S.Friend
Messages: 3
Registered: February 2011
Junior Member
Hi guys!

I guess this should be a simple one for you experts out there ..

I have several plug-ins and features which I want to deliver with p2. But there is no product nor an application in these plug-ins.

I can build these features in Eclipse with buckminster or with the export wizard. But how can I achieve this headless?

tia
Re: building p2 headless without a product/application [message #655127 is a reply to message #655100] Fri, 18 February 2011 12:54 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

On 02/18/2011 05:27 AM, Ch. S. wrote:
> Hi guys!
> I guess this should be a simple one for you experts out there ..
> I have several plug-ins and features which I want to deliver with p2.
> But there is no product nor an application in these plug-ins.
> I can build these features in Eclipse with buckminster or with the
> export wizard. But how can I achieve this headless?

You build using eclipse/plugins/org.eclipse.pde.build_xxx/scripts/build.xml

The you create a "master feature" that includes all of your features,
and build that.

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: building p2 headless without a product/application [message #655132 is a reply to message #655127] Fri, 18 February 2011 13:05 Go to previous messageGo to next message
Ch. S. is currently offline Ch. S.Friend
Messages: 3
Registered: February 2011
Junior Member
that sounds like building a feature containing my features .. but that's too easy. Wink

1) I want to build a update site not a feature.
2) It shall be build headless.
Re: building p2 headless without a product/application [message #655145 is a reply to message #655132] Fri, 18 February 2011 13:46 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

On 02/18/2011 08:05 AM, Ch. S. wrote:
> that sounds like building a feature containing my features .. but that's
> too easy. ;)
>
> 1) I want to build a update site not a feature.
> 2) It shall be build headless.

Yes, it's building a feature of features. The output of the build (if
you have the p2 properties set) is a p2 repo that contains your features.

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: building p2 headless without a product/application [message #655152 is a reply to message #655145] Fri, 18 February 2011 13:59 Go to previous messageGo to next message
Ch. S. is currently offline Ch. S.Friend
Messages: 3
Registered: February 2011
Junior Member
Cool. That sounds straight-forward.

Pardon my noobness, but

1) how do I call
eclipse/plugins/org.eclipse.pde.build_xxx/scripts/build.xml
outside of Eclipse?

2) how do I set the p2 property?

Re: building p2 headless without a product/application [message #655159 is a reply to message #655152] Fri, 18 February 2011 14:12 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You have to setup a PDE build. There are some links at the end of this
post that describe it.

This is a simple builder that builds a master feature:

http://dev.eclipse.org/viewcvs/viewvc.cgi/platform-incubator /ui/org.eclipse.ui.automated.build/org.eclipse.ui.releng/bui lder/


Helpful links:

http://www.eclipse.org/articles/Article-PDE-Automation/autom ation.html

PDE Build help: http://help.eclipse.org/helios/index.jsp?nav=/4_2_0

Andrew's blogs: http://aniefer.blogspot.com/

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: building p2 headless without a product/application [message #655169 is a reply to message #655100] Fri, 18 February 2011 14:36 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
If you already build with Buckminster you can build it headless with
Buckminster as well. To build a p2 site, you define a feature that
defines the content of the site (does by default not include itself).

There are various variations on this theme depending on what you want to
achieve - check out the buckminster forum, there are many posts about
headless builds, automated builds etc.

- henrik

On 2/18/11 11:27 AM, Ch. S. wrote:
> Hi guys!
> I guess this should be a simple one for you experts out there ..
> I have several plug-ins and features which I want to deliver with p2.
> But there is no product nor an application in these plug-ins.
> I can build these features in Eclipse with buckminster or with the
> export wizard. But how can I achieve this headless?
>
> tia
Re: building p2 headless without a product/application [message #655995 is a reply to message #655159] Wed, 23 February 2011 16:29 Go to previous message
Anton is currently offline AntonFriend
Messages: 23
Registered: July 2009
Junior Member
Or you might take a look at maven3/tych where its possible to build a
deployable feature (or a whole updatesite) from commandline/integration
server (eg hudson).

http://mattiasholmqvist.se/2010/06/building-with-tycho-part- 3-testing-code-coverage-and-easier-development-using-target- definitions/
https://github.com/sonatype/sonatype-tycho/tree/master/tycho -its/projects/TYCHO321deployableFeature/




"Paul Webster" wrote in message news:ijlu4t$um1$1@news.eclipse.org...

You have to setup a PDE build. There are some links at the end of this
post that describe it.

This is a simple builder that builds a master feature:

http://dev.eclipse.org/viewcvs/viewvc.cgi/platform-incubator /ui/org.eclipse.ui.automated.build/org.eclipse.ui.releng/bui lder/


Helpful links:

http://www.eclipse.org/articles/Article-PDE-Automation/autom ation.html

PDE Build help: http://help.eclipse.org/helios/index.jsp?nav=/4_2_0

Andrew's blogs: http://aniefer.blogspot.com/

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm
Previous Topic:how to find source update site of a plugin at runtime?
Next Topic:legacy sites and "new" updatemanager
Goto Forum:
  


Current Time: Fri Apr 26 09:09:21 GMT 2024

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

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

Back to the top