Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » cannot skip components during materialization
cannot skip components during materialization [message #988386] Thu, 29 November 2012 17:11 Go to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
Hi

I'm trying to materialize both the target platform and the projects
using only a cquery.

some of the projects have optional dependencies on .rap bundles, but I
don't want them in the target platform, thus I have in the cquery this
advisor node

<cq:advisorNode namePattern="^org\.eclipse\.rap(?:\..+)?$"
componentType="osgi.bundle" skipComponent="true"/>

still, in the plugins directory of the target platform I get all these
bundles

buildroot/target.platform/plugins/org.eclipse.rap.jface_1.5.1.20120917-1116.jar
buildroot/target.platform/plugins/org.eclipse.rap.rwt_1.5.1.20120917-1116.jar
buildroot/target.platform/plugins/org.eclipse.rap.ui_1.5.1.20120917-1116.jar
buildroot/target.platform/plugins/org.eclipse.rap.ui.workbench_1.5.1.20120917-1116.jar
buildroot/target.platform/plugins/org.eclipse.rap.ui.forms_1.5.1.20120917-1116.jar
buildroot/target.platform/plugins/org.eclipse.rap.jface.databinding_1.5.1.20120917-1116.jar

am I doing anything wrong with the advisor node?

I also have this

<cq:advisorNode namePattern=".*" useTargetPlatform="false"/>

but that should not disturb...

thanks in advance
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net


Re: cannot skip components during materialization [message #988433 is a reply to message #988386] Thu, 29 November 2012 21:22 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
On 2012-11-29 18:11, Lorenzo Bettini wrote:
> Hi
>
> I'm trying to materialize both the target platform and the projects
> using only a cquery.
>
> some of the projects have optional dependencies on .rap bundles, but I
> don't want them in the target platform, thus I have in the cquery this
> advisor node
>
> <cq:advisorNode namePattern="^org\.eclipse\.rap(?:\..+)?$"
> componentType="osgi.bundle" skipComponent="true"/>
>
> still, in the plugins directory of the target platform I get all these
> bundles
>
> buildroot/target.platform/plugins/org.eclipse.rap.jface_1.5.1.20120917-1116.jar
> buildroot/target.platform/plugins/org.eclipse.rap.rwt_1.5.1.20120917-1116.jar
> buildroot/target.platform/plugins/org.eclipse.rap.ui_1.5.1.20120917-1116.jar
> buildroot/target.platform/plugins/org.eclipse.rap.ui.workbench_1.5.1.20120917-1116.jar
> buildroot/target.platform/plugins/org.eclipse.rap.ui.forms_1.5.1.20120917-1116.jar
> buildroot/target.platform/plugins/org.eclipse.rap.jface.databinding_1.5.1.20120917-1116.jar
>
> am I doing anything wrong with the advisor node?
>
> I also have this
>
> <cq:advisorNode namePattern=".*" useTargetPlatform="false"/>
>
> but that should not disturb...
>
That depends on the order. The first match will be used and it becomes
omnipotent. Any pattern following .* will be ignored.

- thomas
Re: cannot skip components during materialization [message #988552 is a reply to message #988433] Fri, 30 November 2012 13:23 Go to previous message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
On 11/29/2012 10:22 PM, Thomas Hallgren wrote:
> On 2012-11-29 18:11, Lorenzo Bettini wrote:
>> Hi
>>
>> I'm trying to materialize both the target platform and the projects
>> using only a cquery.
>>
>> some of the projects have optional dependencies on .rap bundles, but I
>> don't want them in the target platform, thus I have in the cquery this
>> advisor node
>>
>> <cq:advisorNode namePattern="^org\.eclipse\.rap(?:\..+)?$"
>> componentType="osgi.bundle" skipComponent="true"/>
>>
>> still, in the plugins directory of the target platform I get all these
>> bundles
>>
>> buildroot/target.platform/plugins/org.eclipse.rap.jface_1.5.1.20120917-1116.jar
>>
>> buildroot/target.platform/plugins/org.eclipse.rap.rwt_1.5.1.20120917-1116.jar
>>
>> buildroot/target.platform/plugins/org.eclipse.rap.ui_1.5.1.20120917-1116.jar
>>
>> buildroot/target.platform/plugins/org.eclipse.rap.ui.workbench_1.5.1.20120917-1116.jar
>>
>> buildroot/target.platform/plugins/org.eclipse.rap.ui.forms_1.5.1.20120917-1116.jar
>>
>> buildroot/target.platform/plugins/org.eclipse.rap.jface.databinding_1.5.1.20120917-1116.jar
>>
>>
>> am I doing anything wrong with the advisor node?
>>
>> I also have this
>>
>> <cq:advisorNode namePattern=".*" useTargetPlatform="false"/>
>>
>> but that should not disturb...
>>
> That depends on the order. The first match will be used and it becomes
> omnipotent. Any pattern following .* will be ignored.
>
> - thomas
>

Luckily I told also about the other advisor node, which was actually
before the skipComponent one... you're right they were in the wrong order :)

thanks! Now everything works as expected

cheers
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net


Previous Topic:sourceLevel=DESIRE doesn't fetch component when already present in target platform
Next Topic:Buckminster calling product.ant (from example)
Goto Forum:
  


Current Time: Sat Apr 20 01:13:06 GMT 2024

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

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

Back to the top