Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » create.product action not finding the IU
create.product action not finding the IU [message #531855] Thu, 06 May 2010 11:45 Go to next message
Jesper Eskilson is currently offline Jesper Eskilson
Messages: 131
Registered: July 2009
Senior Member
I'm trying to follow the layout in the
org.eclipse.buckminster.tutorial.mailapp projects to build an RCP, but
the "create.product" action fails to find the IU. In the tutorial
projects, the "iu" attribute in
o.e.b.t.mailapp.product.feature/buckminster.cspec is set to
"org.eclipse.buckminster.tutorial.mailapp.product". I've tried to follow
the exact same naming convention, but with "com.iar.hubble" instead of
"org.eclipse.buckminster.tutorial.mailapp". Therefore, I set the "iu"
attribute to "com.iar.hubble.product", but when executing the
"create.product" action, I get the following error:

> [ant] C:\buckminster-3.6\plugins\org.eclipse.equinox.launcher_1.1. 0.v20100322-1720.jar
> [ant] file:/C:/Users/JESPER~1.IAR/AppData/Local/Temp/buckminster/b uild/com.iar.hubble.product.feature_1.0.0-eclipse.feature/si te.p2/
> [ant] C:\Users\JESPER~1.IAR\AppData\Local\Temp\buckminster\build\c om.iar.hubble.product.feature_1.0.0-eclipse.feature\Hubble
> [ant] The installable unit com.iar.hubble.product has not been found.
> [ant] Application failed, log file location: C:\buckminster-3.6\configuration\1273146099416.log
> ERROR: org.eclipse.core.runtime.CoreException: C:\work\tmpws\features\com.iar.hubble.product.feature\build\ product.ant:22: Java returned: 13

I've tried a bunch of different values for the iu attribute, but nothing
seems to stick.

--
/Jesper
Re: create.product action not finding the IU [message #531862 is a reply to message #531855] Thu, 06 May 2010 12:05 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas Hallgren
Messages: 3229
Registered: July 2009
Senior Member
Hi Jesper,
Where do you keep the .product definition for this product? In what project and what type of project? What ID does the
product have there.

- thomas


On 05/06/2010 01:45 PM, Jesper Eskilson wrote:
>
> I'm trying to follow the layout in the
> org.eclipse.buckminster.tutorial.mailapp projects to build an RCP, but
> the "create.product" action fails to find the IU. In the tutorial
> projects, the "iu" attribute in
> o.e.b.t.mailapp.product.feature/buckminster.cspec is set to
> "org.eclipse.buckminster.tutorial.mailapp.product". I've tried to follow
> the exact same naming convention, but with "com.iar.hubble" instead of
> "org.eclipse.buckminster.tutorial.mailapp". Therefore, I set the "iu"
> attribute to "com.iar.hubble.product", but when executing the
> "create.product" action, I get the following error:
>
>> [ant]
>> C:\buckminster-3.6\plugins\org.eclipse.equinox.launcher_1.1. 0.v20100322-1720.jar
>>
>> [ant]
>> file:/C:/Users/JESPER~1.IAR/AppData/Local/Temp/buckminster/b uild/com.iar.hubble.product.feature_1.0.0-eclipse.feature/si te.p2/
>>
>> [ant]
>> C:\Users\JESPER~1.IAR\AppData\Local\Temp\buckminster\build\c om.iar.hubble.product.feature_1.0.0-eclipse.feature\Hubble
>>
>> [ant] The installable unit com.iar.hubble.product has not been found.
>> [ant] Application failed, log file location:
>> C:\buckminster-3.6\configuration\1273146099416.log
>> ERROR: org.eclipse.core.runtime.CoreException:
>> C:\work\tmpws\features\com.iar.hubble.product.feature\build\ product.ant:22:
>> Java returned: 13
>
> I've tried a bunch of different values for the iu attribute, but nothing
> seems to stick.
>
Re: create.product action not finding the IU [message #531876 is a reply to message #531862] Thu, 06 May 2010 13:07 Go to previous messageGo to next message
Jesper Eskilson is currently offline Jesper Eskilson
Messages: 131
Registered: July 2009
Senior Member
On 2010-05-06 14:05, Thomas Hallgren wrote:
> Hi Jesper,
> Where do you keep the .product definition for this product? In what
> project and what type of project? What ID does the product have there.

The .product file is in the product feature project.

com.iar.hubble.product.feature/hubble.product

The contents looks like this:

> <product name="Hubble" uid="com.iar.hubble" id="com.iar.hubble.product" version="0.5.0" useFeatures="true" includeLaunchers="true">
>...
> </product>

I just realized that the list of features in the product was empty. I'll
fix that and try again.

--
/Jesper
Re: create.product action not finding the IU [message #532000 is a reply to message #531876] Thu, 06 May 2010 17:40 Go to previous messageGo to next message
Jesper Eskilson is currently offline Jesper Eskilson
Messages: 131
Registered: July 2009
Senior Member
On 2010-05-06 15:07, Jesper Eskilson wrote:

> I just realized that the list of features in the product was empty. I'll
> fix that and try again.

Nope. The IU is still not found.

--
/Jesper
Re: create.product action not finding the IU [message #532081 is a reply to message #532000] Fri, 07 May 2010 06:02 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas Hallgren
Messages: 3229
Registered: July 2009
Senior Member
Are you creating the actual update site from the product feature?

You should know that the feature that defines the content of the actual site normally is excluded from the site itself.
You can change this behavior by adding the property:

site.include.top=true

or, add a feature that describes the site (gives the site a name, lists its content etc.) and include the product
feature there.

HTH,
- thomas

On 05/06/2010 07:40 PM, Jesper Eskilson wrote:
> On 2010-05-06 15:07, Jesper Eskilson wrote:
>
>> I just realized that the list of features in the product was empty. I'll
>> fix that and try again.
>
> Nope. The IU is still not found.
>
Re: create.product action not finding the IU [message #532112 is a reply to message #532081] Fri, 07 May 2010 08:33 Go to previous messageGo to next message
Jesper Eskilson is currently offline Jesper Eskilson
Messages: 131
Registered: July 2009
Senior Member
On 2010-05-07 08:02, Thomas Hallgren wrote:
> Are you creating the actual update site from the product feature?

Yes.

> You should know that the feature that defines the content of the actual
> site normally is excluded from the site itself. You can change this
> behavior by adding the property:
>
> site.include.top=true

Just to clarify, this properties should go into the build.properties
file in the product feature (com.iar.hubble.product.feature in my case),
right?

> or, add a feature that describes the site (gives the site a name, lists
> its content etc.) and include the product feature there.

I tried to set the site.include.top attribute to true, but it still
fails. I'm not really sure what the "iu" attribute is supposed to refer
to. Should it name the product feature name
(com.iar.hubble.product.feature)? In the tutorial projects it is set to
"org.eclipse.buckminster.tutorial.mailapp.product", but that is not the
name of the product feature.

And how does the create.product action know which product definition
file to use (i.e. "hubble.product" in my case, and "testmailapp.product"
in the tutorial)?

--
/Jesper
Re: create.product action not finding the IU [message #532115 is a reply to message #532112] Fri, 07 May 2010 08:48 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas Hallgren
Messages: 3229
Registered: July 2009
Senior Member
On 05/07/2010 10:33 AM, Jesper Eskilson wrote:
> On 2010-05-07 08:02, Thomas Hallgren wrote:
>> Are you creating the actual update site from the product feature?
>
> Yes.
>
>> You should know that the feature that defines the content of the actual
>> site normally is excluded from the site itself. You can change this
>> behavior by adding the property:
>>
>> site.include.top=true
>
> Just to clarify, this properties should go into the build.properties
> file in the product feature (com.iar.hubble.product.feature in my case),
> right?
>
Not really. The important thing is that the property is passed on when you perform the site.p2 action. Either as a
-Dxxx=yyy or as a -P <property file>


>> or, add a feature that describes the site (gives the site a name, lists
>> its content etc.) and include the product feature there.
>
> I tried to set the site.include.top attribute to true, but it still
> fails. I'm not really sure what the "iu" attribute is supposed to refer
> to. Should it name the product feature name
> (com.iar.hubble.product.feature)? In the tutorial projects it is set to
> "org.eclipse.buckminster.tutorial.mailapp.product", but that is not the
> name of the product feature.
>
It should appoint the product. Not the feature. 'com.iar.hubble.product' seems correct to me.

> And how does the create.product action know which product definition
> file to use (i.e. "hubble.product" in my case, and "testmailapp.product"
> in the tutorial)?
>
It doesn't use the product definition file directly.

When you generate a p2 repository, the publisher will generate UI's for all product definitions that it finds in the
included features. The create.product calls the p2 director to make an install from the generated repository. The
director in turn, requests the product IU.

- thomas
Re: create.product action not finding the IU [message #532117 is a reply to message #532112] Fri, 07 May 2010 08:49 Go to previous messageGo to next message
Johannes Utzig is currently offline Johannes Utzig
Messages: 329
Registered: July 2009
Senior Member
Hi Jesper,

please see comments inline.

>
> Just to clarify, this properties should go into the build.properties
> file in the product feature (com.iar.hubble.product.feature in my case),
> right?
>

No, it's not part of the build properties. It's a property evaluated by
the buckminster runtime. If you invoke your action from the UI the
dialog gives you an option to specify a properties file. If you run
headless you can add a -p some/file.properties.
Just create a buckminster.properties or so and add the line
site.include.top=true

> I tried to set the site.include.top attribute to true, but it still
> fails. I'm not really sure what the "iu" attribute is supposed to refer
> to. Should it name the product feature name
> (com.iar.hubble.product.feature)? In the tutorial projects it is set to
> "org.eclipse.buckminster.tutorial.mailapp.product", but that is not the
> name of the product feature.
>

iu means Installable Unit. An installable unit in the p2 sense can for
example be a bundle, a feature, or a complete product. In your case the
IU is a complete product, hence, the ID of the IU is the ID of the
product as it's displayed in the overview section when you open your
product file.

> And how does the create.product action know which product definition
> file to use (i.e. "hubble.product" in my case, and "testmailapp.product"
> in the tutorial)?
>

The create.product action does not process any product files, it just
invokes the p2 director that will assemble your product. It tells the
director which IU you want to install and where to get the materials
from (the p2 repository that your site.p2 action created earlier).


Best regards,
Johannes
Re: create.product action not finding the IU [message #532130 is a reply to message #532117] Fri, 07 May 2010 09:16 Go to previous messageGo to next message
Jesper Eskilson is currently offline Jesper Eskilson
Messages: 131
Registered: July 2009
Senior Member
On 2010-05-07 10:49, Johannes Utzig wrote:
> Hi Jesper,
>
> please see comments inline.
>
>>
>> Just to clarify, this properties should go into the build.properties
>> file in the product feature (com.iar.hubble.product.feature in my case),
>> right?
>>
>
> No, it's not part of the build properties. It's a property evaluated by
> the buckminster runtime. If you invoke your action from the UI the
> dialog gives you an option to specify a properties file. If you run
> headless you can add a -p some/file.properties.
> Just create a buckminster.properties or so and add the line
> site.include.top=true
>
>> I tried to set the site.include.top attribute to true, but it still
>> fails. I'm not really sure what the "iu" attribute is supposed to refer
>> to. Should it name the product feature name
>> (com.iar.hubble.product.feature)? In the tutorial projects it is set to
>> "org.eclipse.buckminster.tutorial.mailapp.product", but that is not the
>> name of the product feature.
>>
>
> iu means Installable Unit. An installable unit in the p2 sense can for
> example be a bundle, a feature, or a complete product. In your case the
> IU is a complete product, hence, the ID of the IU is the ID of the
> product as it's displayed in the overview section when you open your
> product file.
>
>> And how does the create.product action know which product definition
>> file to use (i.e. "hubble.product" in my case, and "testmailapp.product"
>> in the tutorial)?
>>
>
> The create.product action does not process any product files, it just
> invokes the p2 director that will assemble your product. It tells the
> director which IU you want to install and where to get the materials
> from (the p2 repository that your site.p2 action created earlier).

Do I need to tell Buckminster where the p2 site is located when
executing the create.product action? Judging by the debug output, it
looks as if the actual p2 site used is in a different place than the
buckminster.output.root directory I set in the buckminster.properties file.

Is there a way to display all the IUs, including any products, in an
update site? The "listsite" command only displays the features.

--
/Jesper
Re: create.product action not finding the IU [message #532131 is a reply to message #532130] Fri, 07 May 2010 09:23 Go to previous messageGo to next message
Johannes Utzig is currently offline Johannes Utzig
Messages: 329
Registered: July 2009
Senior Member
Am 07.05.2010 11:16, schrieb Jesper Eskilson:

>
> Do I need to tell Buckminster where the p2 site is located when
> executing the create.product action? Judging by the debug output, it
> looks as if the actual p2 site used is in a different place than the
> buckminster.output.root directory I set in the buckminster.properties file.
>

That should be handled by your cspex:
<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="YourProduct"/>
<property key="iu" value="your.product.id"/>
</properties>
<prerequisites alias="repository">
<attribute name="site.p2"/> <!-- you use the output of site.p2 as input
for create product -->
</prerequisites>
<products alias="destination" base="${buckminster.output}">
<path path="YourProduct/"/>
</products>
</public>

> Is there a way to display all the IUs, including any products, in an
> update site? The "listsite" command only displays the features.
>

The b3 aggregator (former buckminster aggregator) should show you all
IUs of a p2 repository.

Best regards,
Johannes
Re: create.product action not finding the IU [message #532151 is a reply to message #532131] Fri, 07 May 2010 10:46 Go to previous message
Jesper Eskilson is currently offline Jesper Eskilson
Messages: 131
Registered: July 2009
Senior Member
On 2010-05-07 11:23, Johannes Utzig wrote:

>> Is there a way to display all the IUs, including any products, in an
>> update site? The "listsite" command only displays the features.
>>
>
> The b3 aggregator (former buckminster aggregator) should show you all
> IUs of a p2 repository.

This solved the problem. (The b3 aggregator was very helpful.) My
product ID was "com.iar.hubble", as stated in the "hubble.product" file
(and not com.iar.hubble.product", as I had set the iu property to).

Now I only have the "One or more certificates rejected" problem to deal
with, but that is another issue.

Thanks alot!

--
/Jesper
Previous Topic:team --> commit integration
Next Topic:Director-installed headless buckminster broken on OSX
Goto Forum:
  


Current Time: Thu Oct 23 20:36:12 GMT 2014

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

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