Created
January 25, 2011 15:40
-
-
Save caniszczyk/795086 to your computer and use it in GitHub Desktop.
A convenience script to launch the org.eclipse.equinox.p2.director application
This file contains 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 | |
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." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment