Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Simplifying RCP builds: Command to import features without cquery + rmap
Simplifying RCP builds: Command to import features without cquery + rmap [message #508822] Wed, 20 January 2010 13:33
Ralf Ebert is currently offline Ralf EbertFriend
Messages: 72
Registered: July 2009
Member
Hi,

as I'm using Hudson to checkout the files from the SCM into the workspace before
calling Buckminster, I ended up with importing feature / bundle projects
directly from the workspace.root very often in a very simple fashion using a
cquery + rmap. The only variation of this I have needed so far is fetching the
features / bundles from two separate folders 'features' and 'plugins'. I
attached the relevant cquery/rmap files as precise description of what I mean.

Could you see value in a command which allows to do exactly that without
creating cquery/rmap-files yourself, f.e.:

localimport com.example.feature

(f.e. with Buckminster being clever, assuming the workspace.root as default
location, checking if there is a folder plugins/features in there, etc.)

Greetings,

Ralf

--
http://www.ralfebert.de/blog/eclipsercp/





==== cquery + rmap for importing a feature from a folder ====

cquery:

<?xml version="1.0" encoding="UTF-8"?>
<cq:componentQuery xmlns:cq="http://www.eclipse.org/buckminster/CQuery-1.0"
resourceMap="example.rmap">
<cq:rootRequest name="com.example.feature" componentType="eclipse.feature"/>
</cq:componentQuery>

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="resources">
<provider readerType="local" componentTypes="osgi.bundle,eclipse.feature"
mutable="true" source="true">
<uri format="file:///{0}/{1}/">
<bc:propertyRef key="workspace.root" />
<bc:propertyRef key="buckminster.component" />
</uri>
</provider>
</searchPath>

<locator searchPathRef="resources"/>

</rmap>


==== rmap for separate plugin/feature folder ====

<?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="resources">
<provider readerType="local" componentTypes="eclipse.feature">
<uri format="file:///{0}/features/{1}/">
<bc:propertyRef key="workspace.root" />
<bc:propertyRef key="buckminster.component" />
</uri>
</provider>
<provider readerType="local" componentTypes="osgi.bundle">
<uri format="file:///{0}/plugins/{1}/">
<bc:propertyRef key="workspace.root" />
<bc:propertyRef key="buckminster.component" />
</uri>
</provider>
</searchPath>

<locator searchPathRef="resources"/>

</rmap>
Previous Topic:How to avoid re-execution of eclipse.feature#site.p2?
Next Topic:CSPEX versionDesignator
Goto Forum:
  


Current Time: Mon Sep 23 16:00:39 GMT 2024

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

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

Back to the top