Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Materialization issue
Materialization issue [message #491489] Wed, 14 October 2009 19:05 Go to next message
Daniel Drigo Pastore is currently offline Daniel Drigo PastoreFriend
Messages: 3
Registered: October 2009
Junior Member
Hi there!

I am trying to use buckminster to help me create a development environment, but I am having a lot of problems on the materialization step.

I am also having some problems with selecting more than one component to place on my environment.

I am using this simple cquery and rmap files:

build.cquery
<?xml version="1.0" encoding="UTF-8"?>
<cq:componentQuery
xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
resourceMap=" file:/C:/Pastore/Build/eclipse-SDK-3.5-win32/workspace_buck/ build/build.rmap ">
<cq:rootRequest name="org.eclipse.tml.device.feature" componentType="eclipse.feature"/>
<cq:property key="device" value="org.eclipse.tml.device.feature"/>
<cq:property key="localization" value="org.eclipse.tml.localization"/>
<cq:property key="protocol" value="org.eclipse.tml.protocol"/>
<cq:property key="vnc" value="org.eclipse.tml.vnc"/>
<cq:property key="vncviewer" value="org.eclipse.tml.vncviewer"/>
</cq:componentQuery>

build.rmap
<?xml version="1.0" encoding="UTF-8"?>
<rmap
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.eclipse.org/buckminster/RMap-1.0"
xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0"
xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0"
xmlns:pp="http://www.eclipse.org/buckminster/PDEMapProvider-1.0">

<searchPath name="tml">
<provider readerType="cvs"
componentTypes="osgi.bundle,eclipse.feature"
source="true">
<uri format=":pserver:anonymous@dev.eclipse.org:/cvsroot/dsdp,org.eclipse.tml/{0}">
<bc:propertyRef key="vncviewer" />
<bc:propertyRef key="protocol" />
<bc:propertyRef key="device" />
<bc:propertyRef key="localization" />
<bc:propertyRef key="vnc" />
</uri>
</provider>
</searchPath>

<locator searchPathRef="tml"
pattern="org\.eclipse\.tml\..*$" />
<!--locator searchPathRef="tml"
pattern="dev\.eclipse\.org\\cvsroot\\org\.eclipse\.tml\..*$ " /-->
</rmap>

When I click the "Resolve to wizard" button, I can complete the task and save the BOM and MSPEC files. I can also open the BOM file and check my dependencies and it is correct. My problem begins when I try to materialize the BOM/MSPEC file. I just get nothing either from "Import -> buckminster -> materialize..." nor from "Resolve and materialize" button.

Any help would be greatly appreciated!
Thanks in advance!
Re: Materialization issue [message #491609 is a reply to message #491489] Thu, 15 October 2009 09:01 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Daniel,
I think you have misunderstood the way provider works. If you write:

<uri format=":pserver:mailto:anonymous@dev.eclipse.org:/cvsroot/dsdp,org.eclipse.tml/{0}">
...
</uri>

then you have declared a format string that takes exactly one parameter as input. That parameter is normally the name of
the component that the resolver is trying to resolve, i.e.

<uri format=":pserver:mailto:anonymous@dev.eclipse.org:/cvsroot/dsdp,org.eclipse.tml/{0}">
<propertyRef key="buckminster.component"/>
</uri>

If you declare that, then the first thing that will happen is that Buckminster will make an attempt to resolve:

:pserver:mailto:anonymous@dev.eclipse.org :/cvsroot/dsdp,org.eclipse.tml/org.eclipse.tml.device.featur e

given that it succeeds, it will read the dependencies declared in that feature and then try to resolve each one of them.

HTH,
Thomas Hallgren


On 10/14/2009 09:05 PM, Daniel Drigo Pastore wrote:
> Hi there!
>
> I am trying to use buckminster to help me create a development
> environment, but I am having a lot of problems on the materialization step.
>
> I am also having some problems with selecting more than one component to
> place on my environment.
>
> I am using this simple cquery and rmap files:
>
> build.cquery
> <?xml version="1.0" encoding="UTF-8"?>
> <cq:componentQuery
> xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0" resourceMap="
> file:/C:/Pastore/Build/eclipse-SDK-3.5-win32/workspace_buck/
> build/build.rmap ">
> <cq:rootRequest name="org.eclipse.tml.device.feature"
> componentType="eclipse.feature"/>
> <cq:property key="device" value="org.eclipse.tml.device.feature"/>
> <cq:property key="localization" value="org.eclipse.tml.localization"/>
> <cq:property key="protocol" value="org.eclipse.tml.protocol"/>
> <cq:property key="vnc" value="org.eclipse.tml.vnc"/>
> <cq:property key="vncviewer" value="org.eclipse.tml.vncviewer"/>
> </cq:componentQuery>
>
> build.rmap
> <?xml version="1.0" encoding="UTF-8"?>
> <rmap
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://www.eclipse.org/buckminster/RMap-1.0"
> xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0"
> xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0"
> xmlns:pp="http://www.eclipse.org/buckminster/PDEMapProvider-1.0">
>
> <searchPath name="tml">
> <provider readerType="cvs" componentTypes="osgi.bundle,eclipse.feature"
> source="true">
> <uri
> format=":pserver:mailto:anonymous@dev.eclipse.org:/cvsroot/dsdp,org.eclipse.tml/{0}">
>
> <bc:propertyRef key="vncviewer" />
> <bc:propertyRef key="protocol" />
> <bc:propertyRef key="device" />
> <bc:propertyRef key="localization" />
> <bc:propertyRef key="vnc" />
> </uri>
> </provider>
> </searchPath>
>
> <locator searchPathRef="tml" pattern="org\.eclipse\.tml\..*$" />
> <!--locator searchPathRef="tml"
> pattern="dev\.eclipse\.org\\cvsroot\\org\.eclipse\.tml\..*$ " /-->
> </rmap>
>
> When I click the "Resolve to wizard" button, I can complete the task and
> save the BOM and MSPEC files. I can also open the BOM file and check my
> dependencies and it is correct. My problem begins when I try to
> materialize the BOM/MSPEC file. I just get nothing either from "Import
> -> buckminster -> materialize..." nor from "Resolve and materialize"
> button.
>
> Any help would be greatly appreciated!
> Thanks in advance!
Re: Materialization issue [message #491657 is a reply to message #491609] Thu, 15 October 2009 12:17 Go to previous messageGo to next message
Daniel Drigo Pastore is currently offline Daniel Drigo PastoreFriend
Messages: 3
Registered: October 2009
Junior Member
Good morning, Thomas!

Thanks for the advice, but my main problem is still there: I can't get materialization to work. Sad
(The BOM and MSPEC are still correct, but materialization doesn't work with neither of them)

Thanks again for your attention!
Re: Materialization issue [message #492699 is a reply to message #491657] Wed, 21 October 2009 13:08 Go to previous messageGo to next message
Daniel Drigo Pastore is currently offline Daniel Drigo PastoreFriend
Messages: 3
Registered: October 2009
Junior Member
Sorry to bother again, Mr. Hallgren!

I changed my RMAP the way you told me to, but my materialization process isn't working yet.

I tried following some other example, like org.eclipse.buckminster.tutorial.mailapp.releng, but I found out that the main difference is the
provider readerType="eclipse.import"

which really downloads components to the workspace and/or filesystem. But as far as I know, there is nothing like this on the TmL component I want to materialize. Also, all TmL components are either plugins or features, and they are hosted on a cvs server, so I think my provider is correct.

The CQUERY was simplified too:

<?xml version="1.0" encoding="UTF-8"?>
<cq:componentQuery xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0" resourceMap="build.rmap">
<cq:rootRequest name="org.eclipse.tml.feature" componentType="eclipse.feature"/>
<cq:property key="device" value="org.eclipse.tml.device.feature"/>
</cq:componentQuery>

And now my RMAP is this:

<?xml version="1.0" encoding="UTF-8"?>
<rmap
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.eclipse.org/buckminster/RMap-1.0"
xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0"
xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0"
xmlns:pp="http://www.eclipse.org/buckminster/PDEMapProvider-1.0">
<searchPath name="org.eclipse.tml">
<provider readerType="cvs" componentTypes="osgi.bundle,eclipse.feature,buckminster" mutable="true" source="true">
<uri format=":pserver:anonymous@dev.eclipse.org:/cvsroot/dsdp,org.eclipse.tml/{0}">
<bc:propertyRef key="buckminster.component" />
</uri>
</provider>
</searchPath>

<searchPath name="org.eclipse.buckminster">
<provider readerType="svn" componentTypes="osgi.bundle,eclipse.feature,buckminster" mutable="true" source="true">
<uri format=" http://dev.eclipse.org/svnroot/tools/org.eclipse.buckminster /trunk/{0}?moduleAfterTag&amp;moduleAfterBranch">
<bc:propertyRef key="buckminster.component" />
</uri>
</provider>
</searchPath>
<locator searchPathRef="org.eclipse.tml" pattern="org\.eclipse\.tml\..*$" />
<locator searchPathRef="org.eclipse.buckminster" pattern="^org\.eclipse\.buckminster(\..+)?"/>
</rmap>

I would greatly appreciate any help, because I'm really stuck on this issue. I have already checked and the resolution process is working fine since the BOM file is correct (at least it shows the right dependency tree).

Thanks again for your attention,

Daniel Pastore
Re: Materialization issue [message #492709 is a reply to message #492699] Wed, 21 October 2009 13:25 Go to previous message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Daniel,
In general, I think you can be greatly helped by enabling debug tracing for Buckminster:

"Windows" -> "Preferences" -> "Buckminster" -> "Console log level" -> DEBUG

Resolution/Materialization is normally performed by several parallel threads which can lead to some confusion. You can
limit it to one thead by setting the preferences "Max number of parallel materializations" and "Max number of resolver
threads" to 1. It will slow things down but the DEBUG output will be easier to read.

As always, our documentation is a good source:
http://www.eclipse.org/downloads/download.php?file=/tools/bu ckminster/doc/BuckyBook.pdf (link available on the left hand
side menu of our homepage http://www.eclipse.org/buckminster).

Some comments inline:

On 10/21/2009 03:08 PM, Daniel Drigo Pastore wrote:
> Sorry to bother again, Mr. Hallgren!
>
> I changed my RMAP the way you told me to, but my materialization process
> isn't working yet.
>
> I tried following some other example, like
> org.eclipse.buckminster.tutorial.mailapp.releng, but I found out that
> the main difference is the provider readerType="eclipse.import"
>
> which really downloads components to the workspace and/or filesystem.
> But as far as I know, there is nothing like this on the TmL component I
> want to materialize.

Not sure what you are referring to when you say "nothing like this". Can you please elaborate?

> Also, all TmL components are either plugins or
> features, and they are hosted on a cvs server, so I think my provider is
> correct.
>
> The CQUERY was simplified too:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <cq:componentQuery
> xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
> resourceMap="build.rmap">
> <cq:rootRequest name="org.eclipse.tml.feature"
> componentType="eclipse.feature"/>
> <cq:property key="device" value="org.eclipse.tml.device.feature"/>
> </cq:componentQuery>
>
What is relevance for the 'device' property?

> And now my RMAP is this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <rmap
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://www.eclipse.org/buckminster/RMap-1.0"
> xmlns:bc="http://www.eclipse.org/buckminster/Common-1.0"
> xmlns:mp="http://www.eclipse.org/buckminster/MavenProvider-1.0"
> xmlns:pp="http://www.eclipse.org/buckminster/PDEMapProvider-1.0">
> <searchPath name="org.eclipse.tml">
> <provider readerType="cvs"
> componentTypes="osgi.bundle,eclipse.feature,buckminster" mutable="true"
> source="true">
> <uri
> format=":pserver:mailto:anonymous@dev.eclipse.org:/cvsroot/dsdp,org.eclipse.tml/{0}">
>

The 'mailto' part, should that really be in there? My guess would be that:

format=":pserver:anonymous@dev.eclipse.org:/cvsroot/dsdp,org.eclipse.tml/{0}"

will work better ;-).

> <bc:propertyRef key="buckminster.component" />
> </uri>
> </provider>
> </searchPath>
>
> <searchPath name="org.eclipse.buckminster">
> <provider readerType="svn"
> componentTypes="osgi.bundle,eclipse.feature,buckminster" mutable="true"
> source="true">
> <uri
> format=" http://dev.eclipse.org/svnroot/tools/org.eclipse.buckminster /trunk/{0}?moduleAfterTag&moduleAfterBranch">
>
> <bc:propertyRef key="buckminster.component" />
> </uri>
> </provider>
> </searchPath>
> <locator searchPathRef="org.eclipse.tml"
> pattern="org\.eclipse\.tml\..*$" />
> <locator searchPathRef="org.eclipse.buckminster"
> pattern="^org\.eclipse\.buckminster(\..+)?"/>
> </rmap>
>
> I would greatly appreciate any help, because I'm really stuck on this
> issue. I have already checked and the resolution process is working fine
> since the BOM file is correct (at least it shows the right dependency
> tree).
>
As I mentioned earlier, debug trace is your friend. If you can't make it work, then it might help to include the trace here.

HTH,
Thomas Hallgren
Previous Topic:Resolution of svn:externals
Next Topic:actions do not work after update
Goto Forum:
  


Current Time: Fri Apr 26 07:27:35 GMT 2024

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

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

Back to the top