Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » creating an action which depends on other components' actions
creating an action which depends on other components' actions [message #990426] Wed, 12 December 2012 12:58 Go to next message
Lorenzo Bettini is currently offline Lorenzo Bettini
Messages: 1370
Registered: July 2009
Senior Member
Hi

in a .cspex I'd like to define an action which has as prerequisites the
invocation of site.p2 NOT on this component but on other components...

<prerequisites alias="repositories">
<attribute name="site.p2" component="my.component" />
<attribute name="site.p2" component="my.other.component" />
</prerequisites>

but this does not work at all...

any clue please?
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: creating an action which depends on other components' actions [message #990431 is a reply to message #990426] Wed, 12 December 2012 13:30 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas Hallgren
Messages: 3229
Registered: July 2009
Senior Member
On 2012-12-12 13:58, Lorenzo Bettini wrote:
> Hi
>
> in a .cspex I'd like to define an action which has as prerequisites the
> invocation of site.p2 NOT on this component but on other components...
>
> <prerequisites alias="repositories">
> <attribute name="site.p2" component="my.component" />
> <attribute name="site.p2" component="my.other.component" />
> </prerequisites>
>
> but this does not work at all...
>
> any clue please?

It should work. And a lot of things relies on that mechanism. What makes
you think it doesn't work? It's hard to give clues unless you provide
some more details.

- thomas
Re: creating an action which depends on other components' actions [message #990474 is a reply to message #990431] Wed, 12 December 2012 16:09 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo Bettini
Messages: 1370
Registered: July 2009
Senior Member
On 12/12/2012 02:30 PM, Thomas Hallgren wrote:
> On 2012-12-12 13:58, Lorenzo Bettini wrote:
>> Hi
>>
>> in a .cspex I'd like to define an action which has as prerequisites the
>> invocation of site.p2 NOT on this component but on other components...
>>
>> <prerequisites alias="repositories">
>> <attribute name="site.p2" component="my.component" />
>> <attribute name="site.p2" component="my.other.component" />
>> </prerequisites>
>>
>> but this does not work at all...
>>
>> any clue please?
>
> It should work. And a lot of things relies on that mechanism. What makes
> you think it doesn't work? It's hard to give clues unless you provide
> some more details.

Hi

consider for instance the standard .cspex example to create a product

<public name="create.product" actor="ant">
<actorProperties>
<property key="buildFile" value="build/product.ant" />
<property key="targets" value="create.product" />
</actorProperties>
<properties>
<property key="profile" value="BuckyRcpMailProfile" />
<property key="iu"
value="org.eclipse.buckminster.examples.rcp.mail.product" />
</properties>
<prerequisites alias="repository">
<attribute name="site.p2" />
</prerequisites>
<products alias="destination" base="${buckminster.output}">
<path
path="BuckyRcpMail.${target.ws}.${target.os}.${target.arch}/" />
</products>
</public>

If I try to add the component to the prerequisites, e.g., like this

<prerequisites alias="repository">
<attribute name="site.p2" component="my.component" />
</prerequisites>

even if my.component is the very same component I'm in, Buckminster in
the IDE issues

Project refresh on my.component failed: No component named my.component
is known to Buckminster

removing

component="my.component"

makes Buckminster happy again, thus I assume that the component
specification makes Buckminster consider that component somehow wrong...

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
Re: creating an action which depends on other components' actions [message #990481 is a reply to message #990474] Wed, 12 December 2012 16:25 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas Hallgren
Messages: 3229
Registered: July 2009
Senior Member
On 2012-12-12 17:09, Lorenzo Bettini wrote:
> On 12/12/2012 02:30 PM, Thomas Hallgren wrote:
>> On 2012-12-12 13:58, Lorenzo Bettini wrote:
>>> Hi
>>>
>>> in a .cspex I'd like to define an action which has as prerequisites the
>>> invocation of site.p2 NOT on this component but on other components...
>>>
>>> <prerequisites alias="repositories">
>>> <attribute name="site.p2" component="my.component" />
>>> <attribute name="site.p2" component="my.other.component" />
>>> </prerequisites>
>>>
>>> but this does not work at all...
>>>
>>> any clue please?
>>
>> It should work. And a lot of things relies on that mechanism. What makes
>> you think it doesn't work? It's hard to give clues unless you provide
>> some more details.
>
> Hi
>
> consider for instance the standard .cspex example to create a product
>
> <public name="create.product" actor="ant">
> <actorProperties>
> <property key="buildFile" value="build/product.ant" />
> <property key="targets" value="create.product" />
> </actorProperties>
> <properties>
> <property key="profile" value="BuckyRcpMailProfile" />
> <property key="iu"
> value="org.eclipse.buckminster.examples.rcp.mail.product" />
> </properties>
> <prerequisites alias="repository">
> <attribute name="site.p2" />
> </prerequisites>
> <products alias="destination" base="${buckminster.output}">
> <path
> path="BuckyRcpMail.${target.ws}.${target.os}.${target.arch}/" />
> </products>
> </public>
>
> If I try to add the component to the prerequisites, e.g., like this
>
> <prerequisites alias="repository">
> <attribute name="site.p2" component="my.component" />
> </prerequisites>
>
> even if my.component is the very same component I'm in, Buckminster in
> the IDE issues
>
> Project refresh on my.component failed: No component named my.component
> is known to Buckminster
>
> removing
>
> component="my.component"
>
> makes Buckminster happy again, thus I assume that the component
> specification makes Buckminster consider that component somehow wrong...
>
You should not specify component="xxx" when "xxx" is the component itself.

- thomas
Re: creating an action which depends on other components' actions [message #990485 is a reply to message #990474] Wed, 12 December 2012 16:27 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo Bettini
Messages: 1370
Registered: July 2009
Senior Member
mh... wait, something has changed: if I specify components which are
different from the one I'm in, Buckminster does not complain...

On 12/12/2012 05:09 PM, Lorenzo Bettini wrote:
> On 12/12/2012 02:30 PM, Thomas Hallgren wrote:
>> On 2012-12-12 13:58, Lorenzo Bettini wrote:
>>> Hi
>>>
>>> in a .cspex I'd like to define an action which has as prerequisites the
>>> invocation of site.p2 NOT on this component but on other components...
>>>
>>> <prerequisites alias="repositories">
>>> <attribute name="site.p2" component="my.component" />
>>> <attribute name="site.p2" component="my.other.component" />
>>> </prerequisites>
>>>
>>> but this does not work at all...
>>>
>>> any clue please?
>>
>> It should work. And a lot of things relies on that mechanism. What makes
>> you think it doesn't work? It's hard to give clues unless you provide
>> some more details.
>
> Hi
>
> consider for instance the standard .cspex example to create a product
>
> <public name="create.product" actor="ant">
> <actorProperties>
> <property key="buildFile" value="build/product.ant" />
> <property key="targets" value="create.product" />
> </actorProperties>
> <properties>
> <property key="profile" value="BuckyRcpMailProfile" />
> <property key="iu"
> value="org.eclipse.buckminster.examples.rcp.mail.product" />
> </properties>
> <prerequisites alias="repository">
> <attribute name="site.p2" />
> </prerequisites>
> <products alias="destination" base="${buckminster.output}">
> <path
> path="BuckyRcpMail.${target.ws}.${target.os}.${target.arch}/" />
> </products>
> </public>
>
> If I try to add the component to the prerequisites, e.g., like this
>
> <prerequisites alias="repository">
> <attribute name="site.p2" component="my.component" />
> </prerequisites>
>
> even if my.component is the very same component I'm in, Buckminster in
> the IDE issues
>
> Project refresh on my.component failed: No component named my.component
> is known to Buckminster
>
> removing
>
> component="my.component"
>
> makes Buckminster happy again, thus I assume that the component
> specification makes Buckminster consider that component somehow wrong...
>
> 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
Re: creating an action which depends on other components' actions [message #990489 is a reply to message #990481] Wed, 12 December 2012 17:09 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo Bettini
Messages: 1370
Registered: July 2009
Senior Member
On 12/12/2012 05:25 PM, Thomas Hallgren wrote:
> You should not specify component="xxx" when "xxx" is the component itself.

OK, thanks :)

now I successfully have this

<prerequisites alias="repositories">
<attribute name="site.p2"
component="org.eclipse.buckminster.examples.rcp.mail.feature" />
<attribute name="site.p2"
component="org.eclipse.buckminster.examples.rcp.mail.platform" />
</prerequisites>

and in the product.ant I also managed to create the corresponding list
of repositories to pass to the director like this

<target name="create.product">
... SKIP ...
<buckminster.valuepath value="${fs:repositories}"
id="repositories.valuepath"/>
<pathconvert pathsep="," property="repositories"
refid="repositories.valuepath" >
<map from="/" to="file:/"/>
</pathconvert>
<echoproperties/>
<echo message="${repositories}"/>
... SKIP ...

indeed my intention is to create two site.p2 repositories separately and
then build the product against those two, and it is working :)

but the reason I want to create those two repos separately is that for
one of them I want cbi.include.source=false (the one for the platform)
and for the other one I want it set to true... now I'm wondering: is
there a way to specify such property in the prerequisites, but just for
only one of the site.p2?

<prerequisites alias="repositories">
<attribute name="site.p2"
component="org.eclipse.buckminster.examples.rcp.mail.feature" />
<attribute name="site.p2"
component="org.eclipse.buckminster.examples.rcp.mail.platform" />
</prerequisites>

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: creating an action which depends on other components' actions [message #992688 is a reply to message #990489] Sat, 22 December 2012 09:48 Go to previous message
Lorenzo Bettini is currently offline Lorenzo Bettini
Messages: 1370
Registered: July 2009
Senior Member
On 12/12/2012 06:09 PM, Lorenzo Bettini wrote:
> On 12/12/2012 05:25 PM, Thomas Hallgren wrote:
>> You should not specify component="xxx" when "xxx" is the component itself.
>
> OK, thanks :)
>
> now I successfully have this
>
> <prerequisites alias="repositories">
> <attribute name="site.p2"
> component="org.eclipse.buckminster.examples.rcp.mail.feature" />
> <attribute name="site.p2"
> component="org.eclipse.buckminster.examples.rcp.mail.platform" />
> </prerequisites>
>
> and in the product.ant I also managed to create the corresponding list
> of repositories to pass to the director like this
>
> <target name="create.product">
> ... SKIP ...
> <buckminster.valuepath value="${fs:repositories}"
> id="repositories.valuepath"/>
> <pathconvert pathsep="," property="repositories"
> refid="repositories.valuepath" >
> <map from="/" to="file:/"/>
> </pathconvert>
> <echoproperties/>
> <echo message="${repositories}"/>
> ... SKIP ...
>
> indeed my intention is to create two site.p2 repositories separately and
> then build the product against those two, and it is working :)
>
> but the reason I want to create those two repos separately is that for
> one of them I want cbi.include.source=false (the one for the platform)
> and for the other one I want it set to true... now I'm wondering: is
> there a way to specify such property in the prerequisites, but just for
> only one of the site.p2?
>
> <prerequisites alias="repositories">
> <attribute name="site.p2"
> component="org.eclipse.buckminster.examples.rcp.mail.feature" />
> <attribute name="site.p2"
> component="org.eclipse.buckminster.examples.rcp.mail.platform" />
> </prerequisites>
>
> thanks in advance
> Lorenzo
>

any idea?

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:Buckminster and Emma No Coverage
Next Topic:swt error - has anybody seen that?
Goto Forum:
  


Current Time: Thu Oct 23 22:08:24 GMT 2014

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

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