Home » Archived » Buckminster » create.product action not finding the IU
|
Re: create.product action not finding the IU [message #531862 is a reply to message #531855] |
Thu, 06 May 2010 12:05 |
|
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 #532081 is a reply to message #532000] |
Fri, 07 May 2010 06:02 |
|
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 #532115 is a reply to message #532112] |
Fri, 07 May 2010 08:48 |
|
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 |
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 |
Jesper Eskilson Messages: 134 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
|
|
| | |
Goto Forum:
Current Time: Wed Sep 25 23:54:09 GMT 2024
Powered by FUDForum. Page generated in 0.04909 seconds
|