Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » p2 update site appearance(p2 update site contains plugin and feature info)
p2 update site appearance [message #642067] Mon, 29 November 2010 17:51 Go to next message
Richard Adams is currently offline Richard Adams
Messages: 77
Registered: July 2009
Location: Edinburgh
Member
Hello
For our RCP app based on EClipse 3.5.2 we have a p2 update site.
Our features on the update site are simple single plugins wrapped in a feature, and each feature is in its own category (www.sbsi.ed.ac..uk/update)
file://Users/radams/Desktop/Picture2.png

But for some reason instead of a single feature entry appearing within the category we get info about the plugin as well. I.e., there are two entries. Has anyone else had this problem? Would appreciate any replies,

Thanks very much
Richard

Here is the p2 config in our build.xml

runPackager=true

p2.gathering=true

p2.flavor=ParallelDimensionView
p2.publish.artifacts=true
p2.compress=true

and here is the content.xml generated:

<?xml version='1.0' encoding='UTF-8'?>
<?metadataRepository version='1.1.0'?>
<repository name='file:/Users/radams/PDVIEWBUILDS/PDViewRepo - metadata' type='org.eclipse.equinox.internal.p2.metadata.repository.Lo calMetadataRepository' version='1.0.0'>
<properties size='2'>
<property name='p2.timestamp' value='1291051057471'/>
<property name='p2.compressed' value='false'/>
</properties>
<references size='2'>
<repository uri='http://www.sbsi.ed.ac.uk/update' url='http://www.sbsi.ed.ac.uk/update' type='0' options='0'/>
<repository uri='http://www.sbsi.ed.ac.uk/update' url='http://www.sbsi.ed.ac.uk/update' type='1' options='0'/>
</references>
<units size='3'>
<unit id='uk.ac.ed.csbe.sbsivisual.paralleldimensionview' version='1.0.1.201011291717'>
<update id='uk.ac.ed.csbe.sbsivisual.paralleldimensionview' range='[0.0.0,1.0.1.201011291717)' severity='0'/>
<properties size='2'>
<property name='org.eclipse.equinox.p2.name' value='Parallel Dimension View'/>
<property name='org.eclipse.equinox.p2.provider' value='Centre for Systems Biology, Edinburgh'/>
</properties>
<provides size='4'>
<provided namespace='org.eclipse.equinox.p2.iu' name='uk.ac.ed.csbe.sbsivisual.paralleldimensionview' version='1.0.1.201011291717'/>
<provided namespace='osgi.bundle' name='uk.ac.ed.csbe.sbsivisual.paralleldimensionview' version='1.0.1.201011291717'/>
<provided namespace='java.package' name='uk.ac.ed.csbe.sbsivisual.paralleldimensionview' version='0.0.0'/>
<provided namespace='org.eclipse.equinox.p2.eclipse.type' name='bundle' version='1.0.0'/>
</provides>
<requires size='4'>
<required namespace='osgi.bundle' name='org.eclipse.ui' range='0.0.0'/>
<required namespace='osgi.bundle' name='org.eclipse.core.runtime' range='0.0.0'/>
<required namespace='osgi.bundle' name='org.eclipse.core.resources' range='3.5.2'/>
<required namespace='osgi.bundle' name='org.eclipse.draw2d' range='3.5.2'/>
</requires>
<artifacts size='1'>
<artifact classifier='osgi.bundle' id='uk.ac.ed.csbe.sbsivisual.paralleldimensionview' version='1.0.1.201011291717'/>
</artifacts>
<touchpoint id='org.eclipse.equinox.p2.osgi' version='1.0.0'/>
<touchpointData size='1'>
<instructions size='1'>
<instruction key='manifest'>
Bundle-ManifestVersion: 2&#xA;Export-Package: uk.ac.ed.csbe.sbsivisual.paralleldimensionview&#xA;Bundl e-RequiredExecutionEnvironment: J2SE-1.5&#xA;Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime,org.eclipse.core.res ources;bundle-version=&quot;3.5.2&quot;,org.eclipse. draw2d;bundle-version=&quot;3.5.2&quot;&#xA;Bund le-Activator: uk.ac.ed.csbe.sbsivisual.paralleldimensionview.Activator& ;#xA;Bundle-Name: Parallel Dimension View&#xA;Bundle-Version: 1.0.1.201011291717&#xA;Bundle-Vendor: Centre for Systems Biology, Edinburgh&#xA;Bundle-SymbolicName: uk.ac.ed.csbe.sbsivisual.paralleldimensionview;singleton:=tr ue&#xA;Bundle-ActivationPolicy: lazy&#xA;Manifest-Version: 1.0&#xA;Bundle-ClassPath: lib/commons-io-1.4.jar,.
</instruction>
</instructions>
</touchpointData>
</unit>
<unit id='uk.ac.ed.csbe.sbsivisual.paralleldimensionview.feature.f eature.group' version='1.0.1.201011291717' singleton='false'>
<update id='uk.ac.ed.csbe.sbsivisual.paralleldimensionview.feature.f eature.group' range='[0.0.0,1.0.1.201011291717)' severity='0'/>
<properties size='6'>
<property name='org.eclipse.equinox.p2.name' value='Visualizations for Parameter Optimization'/>
<property name='org.eclipse.equinox.p2.description' value=''/>
<property name='org.eclipse.equinox.p2.description.url' value='http://www.sbsi.ed.ac.uk/update'/>
<property name='org.eclipse.equinox.p2.provider' value='CSBE, University of Edinburgh'/>
<property name='org.eclipse.equinox.p2.type.group' value='true'/>
<property name='org.eclipse.equinox.p2.type.category' value='true'/>
</properties>
<provides size='1'>
<provided namespace='org.eclipse.equinox.p2.iu' name='uk.ac.ed.csbe.sbsivisual.paralleldimensionview.feature .feature.group' version='1.0.1.201011291717'/>
</provides>
<requires size='6'>
<required namespace='org.eclipse.equinox.p2.iu' name='org.eclipse.ui' range='0.0.0'/>
<required namespace='org.eclipse.equinox.p2.iu' name='org.eclipse.core.runtime' range='0.0.0'/>
<required namespace='org.eclipse.equinox.p2.iu' name='org.eclipse.core.resources' range='3.5.2'/>
<required namespace='org.eclipse.equinox.p2.iu' name='org.eclipse.draw2d' range='3.5.2'/>
<required namespace='org.eclipse.equinox.p2.iu' name='uk.ac.ed.csbe.sbsivisual.paralleldimensionview' range='[1.0.1.201011291717,1.0.1.201011291717]'/>
<required namespace='org.eclipse.equinox.p2.iu' name='uk.ac.ed.csbe.sbsivisual.paralleldimensionview.feature .feature.jar' range='[1.0.1.201011291717,1.0.1.201011291717]'>
<filter>
(org.eclipse.update.install.features=true)
</filter>
</required>
</requires>
<touchpoint id='null' version='0.0.0'/>
<touchpointData size='1'/>
<licenses size='1'>
<license>
</license>
</licenses>
<copyright>
Copyright Centre for Systems Biology Edinburgh, University of&#xA;Edinburgh, 2010
</copyright>
</unit>
<unit id='uk.ac.ed.csbe.sbsivisual.paralleldimensionview.feature.f eature.jar' version='1.0.1.201011291717'>
<properties size='5'>
<property name='org.eclipse.equinox.p2.name' value='Visualizations for Parameter Optimization'/>
<property name='org.eclipse.equinox.p2.description' value=''/>
<property name='org.eclipse.equinox.p2.description.url' value='http://www.sbsi.ed.ac.uk/update'/>
<property name='org.eclipse.equinox.p2.provider' value='CSBE, University of Edinburgh'/>
<property name='org.eclipse.update.feature.plugin' value='uk.ac.ed.csbe.sbsivisual.paralleldimensionview'/>
</properties>
<provides size='3'>
<provided namespace='org.eclipse.equinox.p2.iu' name='uk.ac.ed.csbe.sbsivisual.paralleldimensionview.feature .feature.jar' version='1.0.1.201011291717'/>
<provided namespace='org.eclipse.equinox.p2.eclipse.type' name='feature' version='1.0.0'/>
<provided namespace='org.eclipse.update.feature' name='uk.ac.ed.csbe.sbsivisual.paralleldimensionview.feature ' version='1.0.1.201011291717'/>
</provides>
<filter>
(org.eclipse.update.install.features=true)
</filter>
<artifacts size='1'>
<artifact classifier='org.eclipse.update.feature' id='uk.ac.ed.csbe.sbsivisual.paralleldimensionview.feature' version='1.0.1.201011291717'/>
</artifacts>
<touchpoint id='org.eclipse.equinox.p2.osgi' version='1.0.0'/>
<touchpointData size='1'>
<instructions size='1'>
<instruction key='zipped'>
true
</instruction>
</instructions>
</touchpointData>
<licenses size='1'>
<license>

</license>
</licenses>
<copyright>
Copyright Centre for Systems Biology Edinburgh, University of&#xA;Edinburgh, 2010
</copyright>
</unit>
</units>
</repository>


Re: p2 update site appearance [message #642068 is a reply to message #642067] Mon, 29 November 2010 17:54 Go to previous messageGo to next message
Richard Adams is currently offline Richard Adams
Messages: 77
Registered: July 2009
Location: Edinburgh
Member
Just to add, basically what we'd like to do is just show the feature/licence info without confusing users who expand the category tree and see all the plugins there.

Also, is there any way to force users to agree to the licence before downloading?


Re: p2 update site appearance [message #642074 is a reply to message #642067] Mon, 29 November 2010 18:19 Go to previous message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Richard Adams wrote:

> <unit id='uk.ac.ed.csbe.sbsivisual.paralleldimensionview.feature.f
> eature.group' version='1.0.1.201011291717' singleton='false'>
> <update
> id='uk.ac.ed.csbe.sbsivisual.paralleldimensionview.feature.f
> eature.group' range='[0.0.0,1.0.1.201011291717)' severity='0'/>
> <properties size='6'>
> <property name='org.eclipse.equinox.p2.name'
> value='Visualizations for Parameter Optimization'/>
> <property name='org.eclipse.equinox.p2.description' value=''/>
> <property name='org.eclipse.equinox.p2.description.url'
> value='http://www.sbsi.ed.ac.uk/update'/>
> <property name='org.eclipse.equinox.p2.provider' value='CSBE,
> University of Edinburgh'/>
> <property name='org.eclipse.equinox.p2.type.group' value='true'/>
> <property name='org.eclipse.equinox.p2.type.category' value='true'/>

This is probably causing your problem ... this says your feature is a
category, but that's not what you want. Our feature.group only has:

property name='org.eclipse.equinox.p2.type.group' value='true'


As for licenses, I had a quick look in one of our content.xml
feature.groups and the it contains the df_LT.license property,
presumably so the license can be made available before they download the
feature/plugins. It must be done as part of the p2 PDE build, although
I'm not sure which part.

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:product definition
Next Topic:Disable ALL RCP keybindings
Goto Forum:
  


Current Time: Wed Sep 17 21:42:06 GMT 2014

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

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