{"id":98,"date":"2009-11-30T18:04:50","date_gmt":"2009-11-30T18:04:50","guid":{"rendered":"http:\/\/salientsoft.co.uk\/?p=98"},"modified":"2010-02-27T17:33:07","modified_gmt":"2010-02-27T17:33:07","slug":"creating-new-workspaces-in-eclipse","status":"publish","type":"post","link":"https:\/\/salientsoft.co.uk\/?p=98","title":{"rendered":"Eclipse Workspaces &#8211; Management\/Corruption Recovery"},"content":{"rendered":"<p>A useful article on this, and on keeping Eclipse clean\u00a0is <strong><a title=\"http:\/\/www.eclipsezone.com\/eclipse\/forums\/t61566.html\" href=\"http:\/\/www.eclipsezone.com\/eclipse\/forums\/t61566.html\" target=\"_blank\">here<\/a><\/strong>. Some\u00a0general points on this are as follows :-<\/p>\n<ol>\n<li>In my experience it does not pay to let workspaces become too large, as metadata corruption can sometimes cause the whole workspace to fail to load and cross project pollution of metadata can happen. It also helps with performance not to have a huge workspace. I keep all related projects for a given application in the same workspace, but not others.<\/li>\n<li>The article describes the use of the -clean command line argument to remove cached <a title=\"http:\/\/salientsoft.co.uk\/?p=205\" href=\"http:\/\/salientsoft.co.uk\/?p=205\"><strong>OSGi<\/strong> <\/a>framework and Eclipse run time metadata. I haven&#8217;t used it myself, but it is said to be able to fix really obscure\u00a0bugs\/issues caused by metadata corruption.<\/li>\n<li>When creating a new workspace, use File\/Export\/Preferences to save a preferences file which can be imported into the new workspace. This will allow e.g. your plug in libraries and other preferences\u00a0to be quickly defined in the new workspace. If you do not do this, you need to either download the libraries again via eclipse&#8217;s user library management, or load them one at a time. An xml file is used to define the userlibraries and I did not look into how to store a library repository locally with its own xml definition.<\/li>\n<li>Note\u00a0that when sharing the libraries across multiple workspaces, you will want to change the default download locatation when downloading them initially \u2013 the default is <strong>&lt;workspace&gt;\\libraries<\/strong>, which would mean that subsequent workspaces would be sharing libraries from inside another one.\u00a0 <strong><a title=\"http:\/\/salientsoft.co.uk\/?p=546\" href=\"http:\/\/salientsoft.co.uk\/?p=546\">This post here<\/a><\/strong>\u00a0details my typical folder structure which places the shared libraries at a level above the workspaces. You will need to modify the download path each time you download a library (in my case this involves just taking out the <strong>Workspaces\\&lt;workspace&gt;\\ <\/strong>levels from the path).<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>A useful article on this, and on keeping Eclipse clean\u00a0is here. Some\u00a0general points on this are as follows :- In my experience it does not pay to let workspaces become too large, as metadata corruption can sometimes cause the whole workspace to fail to load and cross project pollution of metadata can happen. It also [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[12],"tags":[9,16],"_links":{"self":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/98"}],"collection":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=98"}],"version-history":[{"count":9,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/98\/revisions"}],"predecessor-version":[{"id":100,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/98\/revisions\/100"}],"wp:attachment":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=98"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=98"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=98"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}