problem with p2 update site for application with feature [message #546929] |
Wed, 14 July 2010 16:09 |
Eclipse User |
|
|
|
Originally posted by: cjcool.comcast.net
Hi,
I am using 3.5 PDE Build to create and package my RCP application. The build
is product-based where my .product file has a single feature. My problem is
that after the build creates my repository, and I deploy the repository, the
'Check for Updates' never shows my feature in the list of items that can be
updated. However, if I do the following:
1. Select Help->About 'MyProduct'
2. Click on 'Installation Details'
3. Select the installed product from the list (MyProduct) (I can see that my
feature is a child of the product)
4. Click the Update... button on the bottom of the screen.
Then my updates are found and everything works fine.
In my build.properties file are the following:
product=/com.myproduct/myproduct.product
runPackager=true
p2.gathering=true
p2.flavor=myproduct_
p2.director.profile=${build.id}
p2.category.definition=file:/${builder}/category.xml
p2.metadata.repo=file:/${build.dir}/myproduct_repo
p2.metadata.repo.name=MyProduct Update Repository
p2.artifact.repo=file:/${build.dir}/myproduct_repo
p2.artifact.repo.name=MyProduct Artifact Repository
I am also using a transformed repo location for other features that I
install:
repoBaseLocation=${repos.dir}
transformedRepoLocation=${build.dir}/transformed
I have tried numerous variations by adding the following properties:
skipDirector=true
topLevelElementType=feature
topLevelElementId=com.myproduct.feature
I also install other features via the customAssembly.xml 'pre.archive'
target:
<target name="pre.archive">
<ant antfile="${genericTargets}" target="runDirector" inheritAll="true">
<property name="p2.repo" value="file:${buildDirectory}/transformed"/>
<property name="p2.director.iu"
value="org.eclipse.mylyn_feature.feature.group"/>
<property name="p2.director.installPath" value="${eclipse.base}"/>
</ant>
I'm not sure what the problem is, but I think it has to do with the fact
that my product is installed and that the Check for Updates is possibly
looking just for features. Any help in figuring it out would be greatly
appreciated. What is interesting is that all of the features that I install
via pre-archive always show up in the Check for Updates dialog.
BTW, in the myproduct.product file, the application attribute is:
application="org.eclipse.ui.ide.workbench"
I'm thinking that perhaps i should break out my 'feature' build from the
'product' build and simply do an install like I do with the other features.
I'm not sure why I would have to do that, but I need to find a solution.
Thanks,
Chris
|
|
|
Powered by
FUDForum. Page generated in 0.04747 seconds