Guest User

Untitled

a guest
Jul 21st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. #!/bin/bash
  2. if [ $# -lt "5" ]
  3. then
  4. echo
  5. echo "This script needs 5 arguments!"
  6. echo " 1) installable unit (IU)";
  7. echo " 2) metadata repository";
  8. echo " 3) artifact repository";
  9. echo " 4) eclipse directory (destination)";
  10. echo " 5) bundle pool directory";
  11. exit 0;
  12. fi
  13.  
  14. iu=$1
  15. metadataRepo=$2
  16. artifactRepo=$3
  17. eclipseDir=$4
  18. bundlePool=$5
  19.  
  20. echo ""
  21. echo "Installing: ${iu}";
  22. echo "Metadata Repo: ${metadataRepo}";
  23. echo "Artifact Repo: ${artifactRepo}";
  24. echo "Destination: ${bundlePool}";
  25.  
  26. echo ""
  27.  
  28. echo "[`date +%H:%M:%S`] Running p2.director ... ";
  29. # -console -noexit -debug
  30. /usr/bin/eclipse -vm $vm -nosplash \
  31. -consolelog -clean \
  32. -application org.eclipse.equinox.p2.director \
  33. -metadataRepository ${metadataRepo} \
  34. -artifactRepository ${artifactRepo} \
  35. -installIU ${iu} \
  36. -destination ${eclipseDir} \
  37. -bundlepool ${bundlePool} \
  38. -profile SDKProfile
  39. -profileProperties org.eclipse.update.install.features=true \
  40. -p2.os linux -p2.ws gtk -p2.arch x86 \
  41. -vmargs \
  42. -Declipse.p2.data.area=$eclipseDir/eclipse/p2 \
  43. -Xms128M -Xmx256M -XX:PermSize=128M -XX:MaxPermSize=256M
  44. echo "Installed sizes: "; du -shc $eclipseDir/eclipse $bundlePool
  45. echo "... done."
Add Comment
Please, Sign In to add comment