Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: for the plan.

Jump to: navigation, search

Equinox p2 director application/Examples/Install into dropins with link file

To install the GMF SDK and all its prereqs from the Ganymede Update site into any folder then link to it using a .link file in the dropins folder, run this:


pushd $eclipseroot >/dev/null
if [[ $# -eq 0 ]]; then
	rm -fr eclipse $workspace $bundlepoolDir
	echo "[`date +%H:%M:%S`] Unpack $eclipse ...";
	tar xzf $eclipse


echo ""
echo "Using:       vm=$vm and workspace=$workspace";
echo "Installing:  ${installTargetFeatureGroup}";
echo "Destination: $bundlepoolDir";
echo ""

echo "[`date +%H:%M:%S`] Running p2.director ... ";
#  -console -noexit -debug
./eclipse/eclipse -vm $vm -nosplash \
  -data $workspace -consolelog -clean \
  -application \
  -metadataRepository \
  -artifactRepository \
  -installIU ${installTargetFeatureGroup} \
  -destination $eclipseroot \
  -bundlepool $bundlepoolDir \
  -profile ${installTargetFeatureGroup}.profile \
  -profileProperties org.eclipse.update.install.features=true \
  -p2.os linux gtk -p2.arch x86 \
  -vmargs \$eclipseroot/eclipse/p2 \
    -Xms128M -Xmx256M -XX:PermSize=128M -XX:MaxPermSize=256M 
echo "Installed sizes: "; du -shc $eclipseroot/eclipse $bundlepoolDir

echo ""
echo "[`date +%H:%M:%S`] Link ${bundlepoolDir} from dropins/"
echo "path=${bundlepoolDir}" > $eclipseroot/eclipse/dropins/${installTargetFeatureGroup}.link

echo "";
echo -n "[`date +%H:%M:%S`] Starting Eclipse workbench (to verify installation) ...";
#  -console -noexit -debug
./eclipse/eclipse -vm $vm \
  -data $workspace -consolelog -clean \
  -vmargs \
    -Xms128M -Xmx256M -XX:PermSize=128M -XX:MaxPermSize=256M 

popd >/dev/null
echo " done."

If you need to translate this to Windows command syntax or wrap it with an Ant script, see Starting Eclipse Commandline With Equinox Launcher.

Back to the top