[buckminster-dev] Plugin dependencies and cspex file [message #21992] |
Mon, 21 July 2008 09:53 |
Eclipse User |
|
|
|
Originally posted by: jcampolongo.cra.com
This is a multi-part message in MIME format.
------_=_NextPart_001_01C8EB39.24969610
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
Looking in the archives, it is clear that Buckminster supports only
specified dependencies (in the manifest.mf file) during its actions.
=20
Hi Ikuo,=20
We are currently looking at how we can improve the Buckminster search
algorithms so that it=20
will be able to find bundles based on a need to import specific
packages. Someone must=20
provide a list of bundles that can be searched for exports that match.
The problem is a bit=20
similar to finding a suitable runtime implementation for something that
implements an=20
interface that you have expressed a dependency towards.=20
The design is not yet finished, so the current answer to your question
is no, we cannot=20
resolve these dependencies today. You will need to add a bundle
requirement or a feature=20
that will bring the providing bundles into the graph somehow in order
for it to build properly.=20
Kind Regards,=20
Thomas Hallgren
=20
Due to this, I decided that I would create a cspex extension file and
add the dependencies directly:
=20
<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<cspecExtension
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"
xmlns:bc=3D"http://www.eclipse.org/buckminster/Common-1.0"
xmlns=3D"http://www.eclipse.org/buckminster/CSpec-1.0">
<dependencies>
<!-- Place your Dependencies here -->
<dependency name=3D"OSGi_Project" componentType=3D"osgi.bundle"=20
versionDesignator=3D"1.0.0" versionType=3D"OSGi"/>
</dependencies>
</cspecExtension>
=20
Strangely, this doesn't work (the dependency isn't resolved). It still
doesn't work if I add the OSGi_Project to my manifest file as a
dependency. It does work if I remove my extension file and keep the
OSGi_Project in my manifest file.
=20
Is this a bug? Should this work? I note that in the response above,
the solution was not to create an extension file (which seemed the
obvious solution to me, but then, what do I know), but rather to add the
dependency to the manifest or to create a feature.
=20
Joseph Campolongo
Charles River Analytics, Inc.
=20
=20
=20
=20
THIS MESSAGE IS INTENDED FOR THE USE OF THE PERSON TO WHOM IT IS =
ADDRESSED. IT MAY CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL =
AND EXEMPT FROM DISCLOSURE UNDER APPLICABLE LAW. If you are not the =
intended recipient, your use of this message for any purpose is strictly =
prohibited. If you have received this communication in error, please =
delete the message and notify the sender so that we may correct our =
records.
------_=_NextPart_001_01C8EB39.24969610
Content-Type: text/html;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
<HTML >
<HEAD>
<META http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</HEAD>
<BODY lang=3DEN-US link=3Dblue vlink=3Dpurple>
<DIV>
<DIV>
<div class=3DSection1>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Looking in the archives, it is clear that Buckminster
supports only specified dependencies (in the manifest.mf file) during =
its
actions.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p >
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>Hi Ikuo, <br>
We are currently looking at how we can improve the Buckminster search
algorithms so that it <br>
will be able to find bundles based on a need to import specific =
packages.
Someone must <br>
provide a list of bundles that can be searched for exports that match. =
The
problem is a bit <br>
similar to finding a suitable runtime implementation for something that
implements an <br>
interface that you have expressed a dependency towards. <br>
<br>
The design is not yet finished, so the current answer to your question =
is no,
we cannot <br>
resolve these dependencies today. You will need to add a bundle =
requirement or
a feature <br>
that will bring the providing bundles into the graph somehow in order =
for it to
build properly. <br>
<br>
Kind Regards, <br>
Thomas Hallgren</span></font><font size=3D2 face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p >
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Due to this, I decided that I would create a cspex =
extension
file and add the dependencies directly:<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p >
<p class=3DMsoNormal><font size=3D2 color=3Dgray face=3D"Courier =
New"><span
style=3D'font-size:10.0pt;font-family:"Courier New";color:gray'><?xml
version=3D"1.0" =
encoding=3D"UTF-8"?></span></font ><font
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3D"Courier =
New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:navy'><cspecExtension</span></font><font
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3D"Courier =
New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:black'>
</span></font><font size=3D2 color=3Dnavy face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:navy'>xmlns:xsi=3D</span></font><font
size=3D2 color=3Dgreen face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:
"Courier =
New";color:green'>"http://www.w3.org/2001/XMLSchema-instance"</=
span></font><font
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3D"Courier =
New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:black'>
</span></font><font size=3D2 color=3Dnavy face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:navy'>xmlns:bc=3D</span></font><font
size=3D2 color=3Dgreen face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:
"Courier =
New";color:green'>"http://www.eclipse.org/buckminster/Common-1.0&quo=
t;</span></font><font
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3D"Courier =
New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:black'>
</span></font><font size=3D2 color=3Dnavy face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:navy'>xmlns=3D</span></font><font
size=3D2 color=3Dgreen face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:
"Courier =
New";color:green'>"http://www.eclipse.org/buckminster/CSpec-1.0"=
;</span></font><font
size=3D2 color=3Dnavy face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:
"Courier New";color:navy'>></span></font><font size=3D2 =
face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3D"Courier =
New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:black'>
</span></font><font size=3D2 color=3Dnavy face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:navy'><dependencies></span></font ><font
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3D"Courier =
New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:black'>
</span></font><font size=3D2 color=3Dmaroon face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:maroon'><!-- Place
your Dependencies here --></span></font><font size=3D2 =
face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3D"Courier =
New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:black'>
</span></font><font size=3D2 color=3Dnavy face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:navy'><dependency</span></font><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:
"Courier New";color:black'> </span></font><font size=3D2 color=3Dnavy
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:navy'>name=3D</span></font><font size=3D2 color=3Dgreen =
face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:green'>"OSGi_Project"</span> </font><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:
"Courier New";color:black'> </span></font><font size=3D2 color=3Dnavy
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:navy'>componentType=3D</span></font><font size=3D2 color=3Dgreen
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:green'>"osgi.bundle"</span></font ><font size=3D2 =
color=3Dblack
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:black'> </span></font><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3D"Courier =
New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:black'> &=
nbsp;
</span></font><font size=3D2 color=3Dnavy face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:navy'>versionDesignator=3D</span></font><font
size=3D2 color=3Dgreen face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:
"Courier New";color:green'>"1.0.0"</span></font ><font size=3D2
color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:black'> </span></font><font size=3D2 color=3Dnavy face=3D"Courier =
New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:navy'>versionType=3D</span></font><font
size=3D2 color=3Dgreen face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:
"Courier New";color:green'>"OSGi"</span></font> <font size=3D2
color=3Dnavy face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:navy'>/></span></font><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3D"Courier =
New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:black'>
</span></font><font size=3D2 color=3Dnavy face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:navy'></dependencies><o:p></o:p ></span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3D"Courier =
New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:navy'></cspecExtension></span></font ><font
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p >
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Strangely, this doesn’t work (the dependency
isn’t resolved). It still doesn’t work if I add the
OSGi_Project to my manifest file as a dependency. It does work if =
I
remove my extension file and keep the OSGi_Project in my manifest =
file.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p >
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Is this a bug? Should this work? I note =
that in
the response above, the solution was not to create an extension file =
(which
seemed the obvious solution to me, but then, what do I know), but rather =
to add
the dependency to the manifest or to create a =
feature.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p >
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Joseph Campolongo</span></font><o:p></o:p></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Charles River Analytics, =
Inc.</span></font><o:p></o:p></p>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p >
</div>
</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV STYLE=3D"FONT-SIZE: 9pt; FONT-FAMILY: Courier New">
<FONT FACE=3D"Arial" SIZE=3D"1">THIS MESSAGE IS INTENDED FOR THE USE OF =
THE PERSON TO WHOM IT IS ADDRESSED. IT MAY CONTAIN INFORMATION THAT IS =
PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM DISCLOSURE UNDER APPLICABLE =
LAW. If you are not the intended recipient, your use of this message for =
any purpose is strictly prohibited. If you have received this =
communication in error, please delete the message and notify the sender =
so that we may correct our records.</FONT>
</DIV>
<DIV STYLE=3D"FONT-SIZE: 9pt; FONT-FAMILY: Courier New"> </DIV>
<DIV STYLE=3D"FONT-SIZE: 9pt; FONT-FAMILY: Courier New"></DIV>
<DIV STYLE=3D"FONT-SIZE: 9pt; FONT-FAMILY: Courier New"> </DIV>
<DIV STYLE=3D"FONT-SIZE: 9pt; FONT-FAMILY: Courier New"> </DIV>
<DIV STYLE=3D"FONT-SIZE: 9pt; FONT-FAMILY: Courier New"></DIV>
</DIV></BODY></HTML>
------_=_NextPart_001_01C8EB39.24969610--
|
|
|
Powered by
FUDForum. Page generated in 0.03132 seconds