Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Problems generating metadata repository for plug-in
Problems generating metadata repository for plug-in [message #133722] Fri, 26 June 2009 14:34
Prasanna K is currently offline Prasanna KFriend
Messages: 78
Registered: July 2009
Member
We have developed an eclipse plug-in using 3.4.2.
We create an update site for this by following steps in this doc :
http://wiki.eclipse.org/FAQ_How_do_I_create_an_update_site_(site.xml)%3F
Installation of our plug-in on 3.4.2 and 3.5 works fine using the
resulting update site.

During installation on eclipse -3.4.2, in 'Available Software' window the
name of our plug-in appears something like this : file:/C:/Documents and
Settings/My Home/Path/To/Plugin/Dir
What we want is the name should be something like : 'My Company plug-in
update site'.

When googled I found this previous thread :
http://dev.eclipse.org/newslists/news.eclipse.platform.pde/m sg01695.html
So according to the solution in that post I tried to generate metadata and
artifact repositories for our plug-in.
This is the first batch file that I tried : http://pastebin.ca/1475495
It produces artifacts.jar as well as contents.jar but in a location like
this :
C:\Documents0and0Settings\My0Home\myorg\plugins\eclipsePlugi nInstaller\update-site
Now it creates a directory C:\Documents0and0Settings\My0Home (Notice the
zeros)
I want it in MY update-site directory.

Here is the second command used I to generate the metadata repository :
http://pastebin.ca/1475348
The batch file runs fine, eclipse splash comes up and goes and prompt
returns. But nothing happens. No artifacts.jar and / or content.jar gets
created.

I tried the shell script present on this site :
http://wiki.eclipse.org/Equinox_p2_Metadata_Generator which doesn't work.
Shows errors on several lines. I don't want to edit the script so had to
ignore it.

I downloaded p2 adminui to get this done using a gui from :
http://wiki.eclipse.org/Equinox_p2_Getting_Started_Admin_UI
I feel it is of no use for generating metadata repository.

How do I generate the metadata repository...? Where have I made a mistake?

BTW an exercise of this proportion just to place a proper name for the
artifact is for sure not warranted. Is there a simple way other than this?
(I know that editing content.xml manually works but can't be the solution
on a long run.)

Some more observations :

The name appears correct by default in 3.5 in p2 update manager. (Guess it
reads the value of repository/units/unit/properties/property
name='org.eclipse.equinox.p2.name' in content.xml)
And I didn't find a way to uninstall a plug-in from eclipse-3.5.

Thanks.
Previous Topic:Activate a bundle from a bundle
Next Topic:Re: Same installed plug-ins for all the team
Goto Forum:
  


Current Time: Fri Apr 26 22:14:07 GMT 2024

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

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

Back to the top