|
Re: Automatically install features? [message #484900 is a reply to message #484884] |
Wed, 09 September 2009 16:21 |
Tom Dalton Messages: 12 Registered: September 2009 |
Junior Member |
|
|
Ok, so I was being a bit of a noob and using the 3.2 documentation instead of the 3.5 documentation ( http://help.eclipse.org/galileo/topic/org.eclipse.platform.d oc.isv/reference/misc/update_standalone.html) and the command line stuff has changed from startup.jar to the plugins/equinox stuff.
So now it runs and I can add a local site from an extracted emf update site. However, I'm struggling to add the features - when I try to add them I get an error that the feature could not be found at the location.
So I did
java -jar plugins/org.eclipse.equinox.launcher_<version>.jar
-application org.eclipse.update.core.standaloneUpdate
-command addSite
-from my_extracted_emf_dir
And that worked and it said the site had been added.
However, I then tried to add a feature.
java -jar plugins/org.eclipse.equinox.launcher_<version>.jar
-application org.eclipse.update.core.standaloneUpdate
-command install
-featureId emf_feature_name
-version 2.5.0_blah
-from my_extracted_emf_dir
But that borked out, saying that there was no rasource type on the -from url. Fine, so I added file:/ to the front of the absolute directory path to the extracted site update. However, that now fails saying that it cannot find the feature.
Going back into eclipse and checking the update UI, the local site doesn't even show up, so I'm now worndering if that even worked.
Any help would be greatly appreciated - has anyone done this or is there a quicker way to install all the features out of a site .zip archive? I am going to need to do this for EMF, GEF and the Linuxtools packages, all of which are distributed as these site .zip files.
|
|
|
|
Re: Automatically install features? [message #485008 is a reply to message #484884] |
Thu, 10 September 2009 09:01 |
Tom Dalton Messages: 12 Registered: September 2009 |
Junior Member |
|
|
Ok, so I think I'm slowly getting there...
I have got the P2 director looking at a local site for fetaures, but I'm now running into a problem. If I point the remote site url at
file:/path/to/emf-site.zip
java -jar plugins/org.eclipse.equinox.launcher_<version>.jar
-application org.eclipse.update.core.standaloneUpdate
-command mirror
-from file:/path/to/emf-site.zip
-to .
Then it tries to open the file
/path/to/emf-site.zip/site.xml
So it doesn't seem to understand a zipped site. That's fine, but if I unzip the site manually and pass the p2 director:
file:/path/to/emf-site-extracted
Then it analyses the features ok, but when it comes to install them it bombs out with a file not found error. This seems to be caused by the plugins in the extracted site zip being .jar.pack.gz files, but the site.xml refers to the plugins as plain .jar files. Any ideas how to fix this?
[Updated on: Thu, 10 September 2009 09:12] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09440 seconds