Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » EclipseGenerator and categories
EclipseGenerator and categories [message #497100] Thu, 12 November 2009 14:15 Go to next message
Thorsten Meinl is currently offline Thorsten MeinlFriend
Messages: 85
Registered: July 2009
Member
Hi all,

We have an p2-enabled update site for relase 2.1.0 of our software and now
want to add the features of 2.1.1 to the update site. The 2.1.0 are
categorized and the corresponding entry in content.xml does exist and
references the feature with their 2.1.0 version identifier. Now if I let
EclipseGenerator append the new features, they all end up in content.xml but
not in the categories, although they are correctly in the site.xml I pass to
the EclipseGenerator. Only the old ones are categoried so that users do not
see the new features on the update site! If I first deleted the category-
entry from content.xml and the run EclipseGenerator with the very same
arguments the new features are categorized (but of course the old ones are
not). I'm using the following command:

opt/eclipse/eclipse -application
org.eclipse.equinox.p2.metadata.generator.EclipseGenerator -consoleLog -
nosplash -updateSite . -append true -metadataRepository file:/dev/shm/KNIME-
Build/UpdateSite/labs.knime.org/update/2.1 -artifactRepository
file:/dev/shm/KNIME-Build/UpdateSite/labs.knime.org/update/2 .1 -site
file:/dev/shm/KNIME-Build/UpdateSite/labs.knime.org/update/2 .1/site.xml -
flavor tooling -publishArtifacts false

Is this a bug in the EclipseGenerator or am I doing something wrong?

Thorsten
Re: EclipseGenerator and categories [message #497163 is a reply to message #497100] Thu, 12 November 2009 16:29 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
This is a problem with the EclipseGenerator. Ultimately categories are
just IUs the same as everything else in p2. You need a new version to
get new content. The problem here is that the EclipseGenerator just
creates categories with version "0.0.0".

Eclipse 3.5 contains a new publisher which replaces the generator.
See
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/p2_publisher.html
There is a "org.eclipse.equinox.p2.publisher.UpdateSitePublisher"
application.

Or, if you like ant,
<eclipse.publish.featuresAndBundles
repository="file:C:/build/repository"
site="file:C:/build/site.xml" >
<features dir="C:\build\features\" includes="*" />
<bundles dir="C:\build\plugins" includes="*" />
</eclipse.publish.featuresAndBundles>
See
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .pde.doc.user/tasks/pde_p2_buildtasks.htm

-Andrew
Thorsten Meinl wrote:
> Hi all,
>
> We have an p2-enabled update site for relase 2.1.0 of our software and now
> want to add the features of 2.1.1 to the update site. The 2.1.0 are
> categorized and the corresponding entry in content.xml does exist and
> references the feature with their 2.1.0 version identifier. Now if I let
> EclipseGenerator append the new features, they all end up in content.xml but
> not in the categories, although they are correctly in the site.xml I pass to
> the EclipseGenerator. Only the old ones are categoried so that users do not
> see the new features on the update site! If I first deleted the category-
> entry from content.xml and the run EclipseGenerator with the very same
> arguments the new features are categorized (but of course the old ones are
> not). I'm using the following command:
>
> opt/eclipse/eclipse -application
> org.eclipse.equinox.p2.metadata.generator.EclipseGenerator -consoleLog -
> nosplash -updateSite . -append true -metadataRepository file:/dev/shm/KNIME-
> Build/UpdateSite/labs.knime.org/update/2.1 -artifactRepository
> file:/dev/shm/KNIME-Build/UpdateSite/labs.knime.org/update/2 .1 -site
> file:/dev/shm/KNIME-Build/UpdateSite/labs.knime.org/update/2 .1/site.xml -
> flavor tooling -publishArtifacts false
>
> Is this a bug in the EclipseGenerator or am I doing something wrong?
>
> Thorsten
Re: EclipseGenerator and categories [message #603197 is a reply to message #497100] Thu, 12 November 2009 16:29 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
This is a problem with the EclipseGenerator. Ultimately categories are
just IUs the same as everything else in p2. You need a new version to
get new content. The problem here is that the EclipseGenerator just
creates categories with version "0.0.0".

Eclipse 3.5 contains a new publisher which replaces the generator.
See
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/p2_publisher.html
There is a "org.eclipse.equinox.p2.publisher.UpdateSitePublisher"
application.

Or, if you like ant,
<eclipse.publish.featuresAndBundles
repository="file:C:/build/repository"
site="file:C:/build/site.xml" >
<features dir="C:\build\features\" includes="*" />
<bundles dir="C:\build\plugins" includes="*" />
</eclipse.publish.featuresAndBundles>
See
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .pde.doc.user/tasks/pde_p2_buildtasks.htm

-Andrew
Thorsten Meinl wrote:
> Hi all,
>
> We have an p2-enabled update site for relase 2.1.0 of our software and now
> want to add the features of 2.1.1 to the update site. The 2.1.0 are
> categorized and the corresponding entry in content.xml does exist and
> references the feature with their 2.1.0 version identifier. Now if I let
> EclipseGenerator append the new features, they all end up in content.xml but
> not in the categories, although they are correctly in the site.xml I pass to
> the EclipseGenerator. Only the old ones are categoried so that users do not
> see the new features on the update site! If I first deleted the category-
> entry from content.xml and the run EclipseGenerator with the very same
> arguments the new features are categorized (but of course the old ones are
> not). I'm using the following command:
>
> opt/eclipse/eclipse -application
> org.eclipse.equinox.p2.metadata.generator.EclipseGenerator -consoleLog -
> nosplash -updateSite . -append true -metadataRepository file:/dev/shm/KNIME-
> Build/UpdateSite/labs.knime.org/update/2.1 -artifactRepository
> file:/dev/shm/KNIME-Build/UpdateSite/labs.knime.org/update/2 .1 -site
> file:/dev/shm/KNIME-Build/UpdateSite/labs.knime.org/update/2 .1/site.xml -
> flavor tooling -publishArtifacts false
>
> Is this a bug in the EclipseGenerator or am I doing something wrong?
>
> Thorsten
Previous Topic:importing plugin does not automatically add classpath entry for generated jar
Next Topic:Building with Java 1.5 and 1.6 in the same workspace
Goto Forum:
  


Current Time: Sat Aug 08 18:34:17 GMT 2020

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

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

Back to the top