These notes are primarily for myself because I can never freaking remember how to do this and I always lose my handwritten chicken scratch. If you happen to run across them and find them useful, then cool.
When an eclipse user installs plugins through Help → Install New Software
it puts the plugins in the user's local hierarchy. I had recently
installed PDT, the PHP Development Toolkit for a single user and wanted to distribute it to a lab environment for multiple users.
-
Fire up eclipse and make sure a valid repository is set at
Window → Preferences → Install/Update → Available Software Sites
Since I am running 3.7 (Indigo) I set it tohttp://download.eclipse.org/releases/indigo
- In the eclipse GUI install the plugin you want as a single user. For me this was
Help → Install New Software → Programming Languages → PHP Development Tools
- Eclipse installs plugins in two directories
features
andplugins
at~/.eclipse/org.eclipse.yaddayadda/
whereyaddayadda
is some version specific string. For me this wasplatform_3.7.0_185596441
. -
Go to that directory (the parent of
features
andplugins
) and tar/gzip them uptar cf plugins.tar features plugins; gzip plugins.tar
- Distribute the file
plugins.tar.gz
to each machine or put it in a shared location. I put it in my web hierarchy and did awget
from each machine using clusterssh. -
Unzip it
tar xzvf plugins.tar.gz
- Copy the contents of each folder to the location where eclipse is installed. For me this is
in
/usr/local/eclipse/
and thenfeatures
andplugins
. For me this wassudo cp -r features/* /usr/local/eclipse/features/ sudo cp -r plugins/* /usr/local/eclipse/plugins/
-
Make sure permissions are read for everyone. So I had to
sudo chmod -R o+r *
inside of the sharedfeatures
andplugins
directories.
No comments:
Post a Comment