Create a gist now

Instantly share code, notes, and snippets.

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: ./ <relative-path-to-your-sts/eclips…
#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 ",\,\,\,\,\,\,\,\,\" \
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home
cd $1

This looks promising, but is there a similar possibility to find the local installations and their repositories also? I usually install a lot of plugins over time via the marketplace but can hardly remember anything after a while ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment