Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Orbit » Consuming Orbit Bundles in a PDE Build
Consuming Orbit Bundles in a PDE Build [message #15676] Tue, 23 December 2008 22:48 Go to next message
Eclipse UserFriend
Originally posted by: stefan_bar.bellsouth.net

I am trying to set up a build using the PDE build system of a feature
that includes two source plug-ins and one binary plug-in from the Orbit
project.
Reading the http://wiki.eclipse.org/Easy_Bake_Builds_with_Orbit_Bundles
document I figured I would have to add a map entry to my map file.

file : orbit-bundles.map

plugin@org.apache.commons.lang,2.3.0= GET,http://download.eclipse.org/tools/orbit/downloads/drops/ R20080807152315/bundles/org.apache.commons.lang_2.3.0.v20080 3061910.jar


The PDE build does download the bundle and does included in the class
path. Everything compiles correctly. But when it comes to bundling the
distribution zip the commons lang jar does not get included.

Is there a better reference, article or wiki page on how to include
pre-packaged binary bundles in the a feature distribution. Or am I
trying to do something completely wrong here?

Thanks
Stefan
Re: Consuming Orbit Bundles in a PDE Build [message #15703 is a reply to message #15676] Thu, 25 December 2008 03:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: david_williams.linux.vnet.ibm.com

This is a multi-part message in MIME format.
--------------040407030300080501060204
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Stefan Baramov wrote:
> Is there a better reference, article or wiki page on how to include
> pre-packaged binary bundles in the a feature distribution. Or am I
> trying to do something completely wrong here?
You're close. I'm surprised we weren't more explicit in the "easy bake"
guide, so I expanded the 3rd step in
http://wiki.eclipse.org/Easy_Bake_Builds_with_Orbit_Bundles

1. *Include plugin information in a feature.xml file*. Assuming you
want to redistribute the Orbit bundle, then you need to update an
appropriate feature with information for the new Orbit bundle ...
very similar to how you normally would, but there are two cases.
Case of only one map entry for the bundle: In this case, you can
use the familiar "3 zeros" for PDE to fill in the version it finds
from the map file. For example,

<plugin
id="org.apache.commons.lang"
version="0.0.0"
unpack="false"/>


Case of multiple versions in map file: This happens, for example,
when someone includes the whole Orbit generated map file in their
directory of map files, so then there will be multiple entries for
some bundles. In this case, you need to specify the version you
desire. For example

<plugin
id="org.apache.commons.lang"
version="2.3.0.qualifier"
unpack="false"/>





--------------040407030300080501060204
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Stefan Baramov wrote:
<blockquote cite="mid:girpsm$h1b$1@build.eclipse.org" type="cite">Is
there a better reference, article or wiki page on how to include
pre-packaged binary bundles in the a feature distribution. Or am I
trying to do something completely wrong here?
<br>
</blockquote>
You're close. I'm surprised we weren't more explicit in the "easy bake"
guide, so I expanded the 3rd step in
<a class="moz-txt-link-freetext" href="http://wiki.eclipse.org/Easy_Bake_Builds_with_Orbit_Bundles">http://wiki.eclipse.org/Easy_Bake_Builds_with_Orbit_Bundles</a><br>
<ol>
<li><b>Include plugin information in a feature.xml file</b>. Assuming
you want to redistribute the Orbit bundle, then you need to update an
appropriate feature with information for the new Orbit bundle ... very
similar to how you normally would, but there are two cases. <br>
Case of only one map entry for the bundle: In this case, you can use
the familiar "3 zeros" for PDE to fill in the version it finds from the
map file. For example,
<pre> &lt;plugin
id="org.apache.commons.lang"
version="0.0.0"
unpack="false"/&gt;
</pre>
<p>Case of multiple versions in map file: This happens, for
example,
when someone includes the whole Orbit generated map file in their
directory of map files, so then there will be multiple entries for some
bundles. In this case, you need to specify the version you desire. For
example
</p>
<pre> &lt;plugin
id="org.apache.commons.lang"
version="2.3.0.qualifier"
unpack="false"/&gt;
</pre>
<p><br>
</p>
</li>
</ol>
<br>
</body>
</html>

--------------040407030300080501060204--
Re: Consuming Orbit Bundles in a PDE Build [message #16398 is a reply to message #15703] Fri, 02 January 2009 20:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stefan_bar.bellsouth.net

David
Thanks a lot for the reply. Unfortunately it did not work for me. The
problem turns out that I need to set the runPackager property to true.
From the
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.pde.doc.user/reference/pde_builder_config.htm
page the runPackager property is explained like this :

<quote>
Set if the packager needs to be run. Set this if your build results
need to contain binary features and plug-ins that come from the
baseLocation. </quote>

Setting this property gets my binary plug-in bundled in. The
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.pde.doc.user/tasks/pde_p2_integration.htm
page explains the build process. If the property is not set then the
package scripts will not run, hence no binary plug-ins will get bundled.


Thanks
Stefan
Re: Consuming Orbit Bundles in a PDE Build [message #16400 is a reply to message #16398] Mon, 05 January 2009 00:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: david_williams.linux.vnet.ibm.com

Stefan Baramov wrote:
> ... The problem turns out that I need to set the runPackager property
> to true. ...

Thanks for the follow-up. I've always had that set, so forgot it's
importance.

But now I'm curious ... did you _also_ have to specify the plugin in a
feature.xml file? I'd assume so, but if not, I should re-visit my build
knowledge.
If so, and you did need to also include in the feature.xml, then I'll
update the wiki with the 'runPackager' information.
If not (i.e. not required to mention in the feature.xml) then sounds
like a larger "how to" update is called for.
Re: Consuming Orbit Bundles in a PDE Build [message #16407 is a reply to message #16400] Mon, 05 January 2009 20:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stefan_bar.bellsouth.net

David Williams wrote:
>
> But now I'm curious ... did you _also_ have to specify the plugin in a
> feature.xml file? I'd assume so, but if not, I should re-visit my build
> knowledge.
Yes I would have to. Here is example of feature that bundles Ehcache
with two binary plug-ins :

<?xml version="1.0" encoding="UTF-8"?>
<feature
id="com.infor.ehcache"
label="Ehcache"
version="1.5.0">

<plugin
id="com.infor.ehcache.core"
download-size="0"
install-size="0"
version="1.5.0"
unpack="false"/>

<plugin
id="com.infor.jsr107"
download-size="0"
install-size="0"
version="1.0.0"
unpack="false"/>

<plugin
id="org.apache.commons.logging"
download-size="0"
install-size="0"
version="1.1.1.v20080605-1935"
unpack="false"/>

<plugin
id="org.apache.commons.collections"
download-size="0"
install-size="0"
version="3.2.0.v200803061811"
unpack="false"/>

<plugin
id="com.infor.backport_concurrent.java5"
download-size="0"
install-size="0"
version="3.1.0"
unpack="false"/>

<plugin
id="com.infor.backport_concurrent.java6"
download-size="0"
install-size="0"
version="3.1.0"
unpack="false"/>

</feature>

the apache commons logging and collections are retrieved from the Orbit
project. The rest is packages as source code plug-in.
Re: Consuming Orbit Bundles in a PDE Build [message #16410 is a reply to message #16407] Tue, 06 January 2009 09:27 Go to previous message
Eclipse UserFriend
Originally posted by: david_williams.linux.vnet.ibm.com

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Stefan Baramov wrote:
<blockquote cite="mid:gjtqr0$om7$1@build.eclipse.org" type="cite">David
Williams wrote:
<br>
<blockquote type="cite"><br>
But now I'm curious ... did you _also_ have to specify the plugin in a
feature.xml file? I'd assume so, but if not, I should re-visit my build
knowledge.
<br>
</blockquote>
Yes I would have to. </blockquote>
Ok, good .. at least my mental model isn't shattered!&nbsp; :) <br>
I've added a sentence at <br>
<a class="moz-txt-link-freetext" href="http://wiki.eclipse.org/Easy_Bake_Builds_with_Orbit_Bundles">http://wiki.eclipse.org/Easy_Bake_Builds_with_Orbit_Bundles</a><br>
so others can at least get a hint. <br>
&lt;quote&gt;<br>
<p><b>Note: </b>In either case, you also need to set
'runPackager' to true. This is true whenever any pre-built binary
bundles are to be included with your packaged builds. See <a
href=" http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.pde.doc.user/reference/pde_builder_config.htm"
class="external text"
title=" http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.pde.doc.user/reference/pde_builder_config.htm"
rel="nofollow">PDE Build Help</a> for more information.
</p>
<p>&lt;/quote&gt;
</p>
<br>
</body>
</html>
Re: Consuming Orbit Bundles in a PDE Build [message #565021 is a reply to message #15676] Thu, 25 December 2008 03:00 Go to previous message
David Williams is currently offline David WilliamsFriend
Messages: 176
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------040407030300080501060204
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Stefan Baramov wrote:
> Is there a better reference, article or wiki page on how to include
> pre-packaged binary bundles in the a feature distribution. Or am I
> trying to do something completely wrong here?
You're close. I'm surprised we weren't more explicit in the "easy bake"
guide, so I expanded the 3rd step in
http://wiki.eclipse.org/Easy_Bake_Builds_with_Orbit_Bundles

1. *Include plugin information in a feature.xml file*. Assuming you
want to redistribute the Orbit bundle, then you need to update an
appropriate feature with information for the new Orbit bundle ...
very similar to how you normally would, but there are two cases.
Case of only one map entry for the bundle: In this case, you can
use the familiar "3 zeros" for PDE to fill in the version it finds
from the map file. For example,

<plugin
id="org.apache.commons.lang"
version="0.0.0"
unpack="false"/>


Case of multiple versions in map file: This happens, for example,
when someone includes the whole Orbit generated map file in their
directory of map files, so then there will be multiple entries for
some bundles. In this case, you need to specify the version you
desire. For example

<plugin
id="org.apache.commons.lang"
version="2.3.0.qualifier"
unpack="false"/>





--------------040407030300080501060204
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Stefan Baramov wrote:
<blockquote cite="mid:girpsm$h1b$1@build.eclipse.org" type="cite">Is
there a better reference, article or wiki page on how to include
pre-packaged binary bundles in the a feature distribution. Or am I
trying to do something completely wrong here?
<br>
</blockquote>
You're close. I'm surprised we weren't more explicit in the "easy bake"
guide, so I expanded the 3rd step in
<a class="moz-txt-link-freetext" href="http://wiki.eclipse.org/Easy_Bake_Builds_with_Orbit_Bundles">http://wiki.eclipse.org/Easy_Bake_Builds_with_Orbit_Bundles</a><br>
<ol>
<li><b>Include plugin information in a feature.xml file</b>. Assuming
you want to redistribute the Orbit bundle, then you need to update an
appropriate feature with information for the new Orbit bundle ... very
similar to how you normally would, but there are two cases. <br>
Case of only one map entry for the bundle: In this case, you can use
the familiar "3 zeros" for PDE to fill in the version it finds from the
map file. For example,
<pre> &lt;plugin
id="org.apache.commons.lang"
version="0.0.0"
unpack="false"/&gt;
</pre>
<p>Case of multiple versions in map file: This happens, for
example,
when someone includes the whole Orbit generated map file in their
directory of map files, so then there will be multiple entries for some
bundles. In this case, you need to specify the version you desire. For
example
</p>
<pre> &lt;plugin
id="org.apache.commons.lang"
version="2.3.0.qualifier"
unpack="false"/&gt;
</pre>
<p><br>
</p>
</li>
</ol>
<br>
</body>
</html>

--------------040407030300080501060204--
Re: Consuming Orbit Bundles in a PDE Build [message #565040 is a reply to message #15703] Fri, 02 January 2009 20:46 Go to previous message
Stefan Baramov is currently offline Stefan BaramovFriend
Messages: 33
Registered: July 2009
Member
David
Thanks a lot for the reply. Unfortunately it did not work for me. The
problem turns out that I need to set the runPackager property to true.
From the
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.pde.doc.user/reference/pde_builder_config.htm
page the runPackager property is explained like this :

<quote>
Set if the packager needs to be run. Set this if your build results
need to contain binary features and plug-ins that come from the
baseLocation. </quote>

Setting this property gets my binary plug-in bundled in. The
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.pde.doc.user/tasks/pde_p2_integration.htm
page explains the build process. If the property is not set then the
package scripts will not run, hence no binary plug-ins will get bundled.


Thanks
Stefan
Re: Consuming Orbit Bundles in a PDE Build [message #565077 is a reply to message #16398] Mon, 05 January 2009 00:27 Go to previous message
David Williams is currently offline David WilliamsFriend
Messages: 176
Registered: July 2009
Senior Member
Stefan Baramov wrote:
> ... The problem turns out that I need to set the runPackager property
> to true. ...

Thanks for the follow-up. I've always had that set, so forgot it's
importance.

But now I'm curious ... did you _also_ have to specify the plugin in a
feature.xml file? I'd assume so, but if not, I should re-visit my build
knowledge.
If so, and you did need to also include in the feature.xml, then I'll
update the wiki with the 'runPackager' information.
If not (i.e. not required to mention in the feature.xml) then sounds
like a larger "how to" update is called for.
Re: Consuming Orbit Bundles in a PDE Build [message #565107 is a reply to message #16400] Mon, 05 January 2009 20:33 Go to previous message
Stefan Baramov is currently offline Stefan BaramovFriend
Messages: 33
Registered: July 2009
Member
David Williams wrote:
>
> But now I'm curious ... did you _also_ have to specify the plugin in a
> feature.xml file? I'd assume so, but if not, I should re-visit my build
> knowledge.
Yes I would have to. Here is example of feature that bundles Ehcache
with two binary plug-ins :

<?xml version="1.0" encoding="UTF-8"?>
<feature
id="com.infor.ehcache"
label="Ehcache"
version="1.5.0">

<plugin
id="com.infor.ehcache.core"
download-size="0"
install-size="0"
version="1.5.0"
unpack="false"/>

<plugin
id="com.infor.jsr107"
download-size="0"
install-size="0"
version="1.0.0"
unpack="false"/>

<plugin
id="org.apache.commons.logging"
download-size="0"
install-size="0"
version="1.1.1.v20080605-1935"
unpack="false"/>

<plugin
id="org.apache.commons.collections"
download-size="0"
install-size="0"
version="3.2.0.v200803061811"
unpack="false"/>

<plugin
id="com.infor.backport_concurrent.java5"
download-size="0"
install-size="0"
version="3.1.0"
unpack="false"/>

<plugin
id="com.infor.backport_concurrent.java6"
download-size="0"
install-size="0"
version="3.1.0"
unpack="false"/>

</feature>

the apache commons logging and collections are retrieved from the Orbit
project. The rest is packages as source code plug-in.
Re: Consuming Orbit Bundles in a PDE Build [message #565133 is a reply to message #16407] Tue, 06 January 2009 09:27 Go to previous message
David Williams is currently offline David WilliamsFriend
Messages: 176
Registered: July 2009
Senior Member
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Stefan Baramov wrote:
<blockquote cite="mid:gjtqr0$om7$1@build.eclipse.org" type="cite">David
Williams wrote:
<br>
<blockquote type="cite"><br>
But now I'm curious ... did you _also_ have to specify the plugin in a
feature.xml file? I'd assume so, but if not, I should re-visit my build
knowledge.
<br>
</blockquote>
Yes I would have to. </blockquote>
Ok, good .. at least my mental model isn't shattered!&nbsp; :) <br>
I've added a sentence at <br>
<a class="moz-txt-link-freetext" href="http://wiki.eclipse.org/Easy_Bake_Builds_with_Orbit_Bundles">http://wiki.eclipse.org/Easy_Bake_Builds_with_Orbit_Bundles</a><br>
so others can at least get a hint. <br>
&lt;quote&gt;<br>
<p><b>Note: </b>In either case, you also need to set
'runPackager' to true. This is true whenever any pre-built binary
bundles are to be included with your packaged builds. See <a
href=" http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.pde.doc.user/reference/pde_builder_config.htm"
class="external text"
title=" http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.pde.doc.user/reference/pde_builder_config.htm"
rel="nofollow">PDE Build Help</a> for more information.
</p>
<p>&lt;/quote&gt;
</p>
<br>
</body>
</html>
Previous Topic:Consuming Orbit Bundles in a PDE Build
Next Topic:JSR166 (java.util.concurrent) backport for Orbit
Goto Forum:
  


Current Time: Wed Apr 24 20:32:30 GMT 2024

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

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

Back to the top