Home » Eclipse Projects » Orbit » Consuming Orbit Bundles in a PDE Build
|
Re: Consuming Orbit Bundles in a PDE Build [message #15703 is a reply to message #15676] |
Thu, 25 December 2008 03:00 |
Eclipse User |
|
|
|
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> <plugin
id="org.apache.commons.lang"
version="0.0.0"
unpack="false"/>
</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> <plugin
id="org.apache.commons.lang"
version="2.3.0.qualifier"
unpack="false"/>
</pre>
<p><br>
</p>
</li>
</ol>
<br>
</body>
</html>
--------------040407030300080501060204--
|
|
| |
Re: Consuming Orbit Bundles in a PDE Build [message #16400 is a reply to message #16398] |
Mon, 05 January 2009 00:27 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 #565021 is a reply to message #15676] |
Thu, 25 December 2008 03:00 |
David Williams 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> <plugin
id="org.apache.commons.lang"
version="0.0.0"
unpack="false"/>
</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> <plugin
id="org.apache.commons.lang"
version="2.3.0.qualifier"
unpack="false"/>
</pre>
<p><br>
</p>
</li>
</ol>
<br>
</body>
</html>
--------------040407030300080501060204--
|
|
| | | | |
Goto Forum:
Current Time: Sat May 04 12:30:43 GMT 2024
Powered by FUDForum. Page generated in 0.04139 seconds
|