Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ $# -lt "5" ]
- then
- echo
- echo "This script needs 5 arguments!"
- echo " 1) installable unit (IU)";
- echo " 2) metadata repository";
- echo " 3) artifact repository";
- echo " 4) eclipse directory (destination)";
- echo " 5) bundle pool directory";
- exit 0;
- fi
- iu=$1
- metadataRepo=$2
- artifactRepo=$3
- eclipseDir=$4
- bundlePool=$5
- echo ""
- echo "Installing: ${iu}";
- echo "Metadata Repo: ${metadataRepo}";
- echo "Artifact Repo: ${artifactRepo}";
- echo "Destination: ${bundlePool}";
- echo ""
- echo "[`date +%H:%M:%S`] Running p2.director ... ";
- # -console -noexit -debug
- /usr/bin/eclipse -vm $vm -nosplash \
- -consolelog -clean \
- -application org.eclipse.equinox.p2.director \
- -metadataRepository ${metadataRepo} \
- -artifactRepository ${artifactRepo} \
- -installIU ${iu} \
- -destination ${eclipseDir} \
- -bundlepool ${bundlePool} \
- -profile SDKProfile
- -profileProperties org.eclipse.update.install.features=true \
- -p2.os linux -p2.ws gtk -p2.arch x86 \
- -vmargs \
- -Declipse.p2.data.area=$eclipseDir/eclipse/p2 \
- -Xms128M -Xmx256M -XX:PermSize=128M -XX:MaxPermSize=256M
- echo "Installed sizes: "; du -shc $eclipseDir/eclipse $bundlePool
- echo "... done."
Add Comment
Please, Sign In to add comment