Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to give a name to an Eclipse Update Site?

I'm generating an Eclipse update site and I'm trying to give it a label so that when it appears in a user's sites list, it would appear as a name (e.g., "Ganymede project") rather than as a URL.

I haven't been able to find any parameter for it in the PDE or site.xml

The only thing that I've seen is to let it generate and then manually edit artifact.xml, but that gets messed up everytime you build and is ugly as hell.

like image 809
Uri Avatar asked Nov 05 '22 23:11

Uri


1 Answers

Not 100% sure on this since I'm not familiar with Eclipse update site building, but this page:

http://wiki.eclipse.org/Equinox_p2_Metadata_Generator

Seems to indicate you can generate the metadata for the update site using org.eclipse.equinox.p2.metadata.generator.EclipseGenerator which includes the site name as a parameter:

Arguments describing the output

[...]

-metadataRepositoryName

a user friendly name for the metadata repository

Perhaps that's what you need, to generate the metadata for the site? See http://wiki.eclipse.org/WTP/What_we_have_learned_(to_love)_about_P2 as well:

...Since you have both a content.jar and a site.xml at that location, you actually have two repositories. You have a classic update site, and a p2 repository (these files don't know/care about each other). Classic update sites don't contain a site name (site.xml has no name element), so these sites are "nameless". p2 repositories contain a name element so they have a human-readable name.

like image 159
Jay Avatar answered Nov 14 '22 11:11

Jay