tags:

views:

197

answers:

4

Updated2: Where is the list of software sites stored in the filesystem? I am after the file where this information is stored.

Eclipse Galileo 3.5 won't let me delete broken software site repositories from the list. E.g. I am trying to get rid of the Bazaar Update Site.

+1  A: 

I used

find . -type f -exec grep -l "xxx.googlecode" "{}" \;

in directory ~/workspace/.metadata/.plugins

to find occurrences of an SVN provider I have registered. I came up with

./org.eclipse.core.runtime/.settings/org.eclipse.team.svn.core.prefs
./org.eclipse.core.resources/.projects/Jospital/.indexes/properties.index

That should get you off to a running start. Locations may vary depending on what version control plugin you use.


Update: Software update sites

Oh I see, I misunderstood "software update site" for "source control site".

I did a similar search from the directory where I have Eclipse installed and found:

./eclipse/p2/org.eclipse.equinox.p2.engine/profileRegistry/epp.package.jee.profile/.data/.settings/org.eclipse.equinox.p2.artifact.repository.prefs
./eclipse/p2/org.eclipse.equinox.p2.engine/profileRegistry/epp.package.jee.profile/.data/.settings/org.eclipse.equinox.p2.metadata.repository.prefs

... which is in line with the information other people have been posting too.


Update: the button click problem

A lot of people are finding that "things don't work" in Eclipse, and it turns out that what is not working is clicking on some buttons. Maybe you just weren't able to activate the OK button when doing the Remove?

This problem will be fixed in the next release of Eclipse. For the meantime, there is a workaround, nay 2:

  • You can click a button using the space bar on the keyboard;
  • You can follow the advice given on my blog and many other places. It involves defining an environment variable for Eclipse.

Update: Another workaround

If certain software sites are bothering you with frequent failed attempts to update and you are unable or unwilling to remove these sites from your list of available sites, you could also just simply Disable them in Eclipse's GUI.

Carl Smotricz
Thanks for your time Carl: I updated the question to reflect a better appellation for what I am after.
jldupont
THANKS a million! You saved my day re: button issue!
jldupont
A: 

From the menu:

Windows --> Preferences --> Install/Update --> Available Software Sites

Jason Faust
Thanks for your time Jason: maybe my question isn't sufficiently clear (and I apologize for this): I am after the location of the **file** which contains the update sites. You see, Eclipse won't let me delete sites from the GUI anymore... something is really broken.
jldupont
+1  A: 

I would guess the files you are looking for are the XMLs in

<eclipse>\p2\org.eclipse.equinox.p2.repository\cache
Arne
seems like the place... thanks! One note though: it seems there aren't just *xml* files in there but also *jar* files containing the *xml* files in question.
jldupont
My guess is that the jar file contains the default, as-shipped version of the XML file. The file has to come from somewhere, right?
Carl Smotricz
+1  A: 

Those sites should also be referenced in

eclipse\p2\org.eclipse.equinox.p2.engine\profileRegistry\epp.package.java.profile\.data\.settings\org.eclipse.equinox.p2.metadata.repository.prefs\
  org.eclipse.equinox.p2.artifact.repository.prefs
  org.eclipse.equinox.p2.metadata.repository.prefs

and also in other directories, which can be a problem for non-Administrator Windows users, as see in the bug 282740, duplicated of bug 249133

VonC
+1: useful related links... but I am not interested in Windows related issues.
jldupont
@jldupont: the second bug (249133) is also for Linux distributions.
VonC