Created
March 13, 2013 19:12
-
-
Save martinlippert/5155155 to your computer and use it in GitHub Desktop.
A simple script to batch install a bunch of additional features into an existing Eclipse or STS installation. Customize to your needs in the "installFeatures()" part. First parameter there is list of feature IDs, second is the list of update sites to install those features from. Run this via:
./install-addons.sh <relative-path-to-your-sts/eclips…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#set -x | |
doInstall() { | |
ECLIPSELOCATION=`ls $LOCATION/plugins/org.eclipse.equinox.launcher_*` | |
$JAVA_HOME/bin/java -jar $ECLIPSELOCATION -nosplash -application org.eclipse.equinox.p2.director \ | |
-metadataRepository "$2" \ | |
-artifactRepository "$2" \ | |
-destination $LOCATION \ | |
-installIU "$1" | |
} | |
installFeatures() { | |
doInstall "org.cloudfoundry.ide.eclipse.server.feature.group,\ | |
net.sourceforge.pmd.eclipse.feature.group,\ | |
com.yourkit.profiler.feature.group,\ | |
org.eclipse.swtbot.forms.feature.group,\ | |
org.eclipse.swtbot.eclipse.feature.group,\ | |
org.eclipse.swtbot.eclipse.gef.feature.group,\ | |
org.eclipse.swtbot.feature.group,\ | |
org.eclipse.swtbot.ide.feature.group,\ | |
org.eclipse.swtbot.eclipse.test.junit3.feature.group,\ | |
org.eclipse.swtbot.eclipse.test.junit4.feature.group" \ | |
"http://download.eclipse.org/eclipse/updates/3.8/,\ | |
http://download.eclipse.org/releases/juno/,\ | |
http://pmd.sourceforge.net/eclipse/,\ | |
http://dist.springsource.com/release/TOOLS/cloudfoundry,\ | |
http://www.yourkit.com/download/yourkit12_for_eclipse/,\ | |
http://download.eclipse.org/technology/swtbot/helios/dev-build/update-site" | |
} | |
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home | |
export COPYFILE_DISABLE=true | |
cd $1 | |
LOCATION=`pwd` | |
installFeatures |
Thanks for the late but long response, @martinlippert. To be honest, I had long forgotten about my request. As I am mostly using IntelliJ for many years meanwhile, it is unfortunately not helpful any longer to me personally. But other users may benefit from this information.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@ascheman Sorry for not having seen your question until now (no idea how that could have happened), apologize.
The easiest way is to look into the installation details of your IDE, there you can find the feature IDs of all the things that you have installed. The corresponding update site URLs can then be found in the preferences (
Available Update Sites
), but you can't see directly which update site belongs to which feature. But usually it is possible to have a good guess here. At least this is the way that I am aware of.If you want to take a look into the update site content behind those URLs, there is a repository explorer view in Eclipse that you could use for that.
Hope that helps and sorry again for the super late reply.