public
Created

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/eclipse-directory>

  • Download Gist
install-addons.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
#!/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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.