Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Equinox p2 director application/Examples/Install into dropins"
m |
m |
||
(8 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
<pre><nowiki> | <pre><nowiki> | ||
#!/bin/bash | #!/bin/bash | ||
+ | ############### start of configuration block ############### | ||
workspace=/tmp/workspace-clean-34 | workspace=/tmp/workspace-clean-34 | ||
eclipseroot=~/eclipse/34clean/p2director | eclipseroot=~/eclipse/34clean/p2director | ||
installTargetFeatureGroup=org.eclipse.gmf.sdk.feature.group | installTargetFeatureGroup=org.eclipse.gmf.sdk.feature.group | ||
bundlepoolDir=$eclipseroot/eclipse/dropins/${installTargetFeatureGroup}/eclipse | bundlepoolDir=$eclipseroot/eclipse/dropins/${installTargetFeatureGroup}/eclipse | ||
+ | arc=`uname -m` | ||
+ | eclipseFancyName=helios | ||
+ | metadataRepository=http://download.eclipse.org/releases/$eclipseFancyName | ||
+ | artifactRepository=$metadataRepository | ||
+ | |||
+ | #eclipseTarGz=eclipse-SDK-3.4-linux-gtk.tar.gz | ||
+ | # this one isn't the smallest for testing though: | ||
+ | # http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/heliossr1 | ||
+ | eclipseTarGz=/tmp/eclipse-jee-helios-SR1-linux-gtk-x86_64.tar.gz | ||
+ | |||
+ | #vm=/opt/sun-java2-5.0/bin/java | ||
+ | #vm=/opt/ibm-java2-5.0/bin/java | ||
+ | |||
+ | # let's use default Java (explicit path) | ||
+ | vm=`which java` | ||
+ | |||
+ | ############## end of configuration block ############### | ||
+ | |||
pushd $eclipseroot >/dev/null | pushd $eclipseroot >/dev/null | ||
if [[ $# -eq 0 ]]; then | if [[ $# -eq 0 ]]; then | ||
− | rm -fr eclipse $workspace $bundlepoolDir | + | rm -fr eclipse $workspace $bundlepoolDir |
− | + | echo "[`date +%H:%M:%S`] Unpack $eclipseTarGz ..."; | |
− | echo "[`date +%H:%M:%S`] Unpack $ | + | tar xzf $eclipseTarGz |
− | tar xzf $ | + | |
fi | fi | ||
− | |||
− | |||
echo "" | echo "" | ||
Line 29: | Line 45: | ||
./eclipse/eclipse -vm $vm -nosplash \ | ./eclipse/eclipse -vm $vm -nosplash \ | ||
-data $workspace -consolelog -clean \ | -data $workspace -consolelog -clean \ | ||
− | -application org.eclipse.equinox.p2.director | + | -application org.eclipse.equinox.p2.director \ |
− | -metadataRepository | + | -metadataRepository $metadataRepository \ |
− | -artifactRepository | + | -artifactRepository $artifactRepository \ |
-installIU ${installTargetFeatureGroup} \ | -installIU ${installTargetFeatureGroup} \ | ||
-destination $eclipseroot \ | -destination $eclipseroot \ | ||
Line 37: | Line 53: | ||
-profile ${installTargetFeatureGroup}.profile \ | -profile ${installTargetFeatureGroup}.profile \ | ||
-profileProperties org.eclipse.update.install.features=true \ | -profileProperties org.eclipse.update.install.features=true \ | ||
− | -p2.os linux -p2.ws gtk -p2.arch | + | -p2.os linux -p2.ws gtk -p2.arch $arc \ |
-vmargs \ | -vmargs \ | ||
-Declipse.p2.data.area=$eclipseroot/eclipse/p2 \ | -Declipse.p2.data.area=$eclipseroot/eclipse/p2 \ | ||
Line 57: | Line 73: | ||
If you need to translate this to Windows command syntax or wrap it with an Ant script, see [[Starting Eclipse Commandline With Equinox Launcher]]. | If you need to translate this to Windows command syntax or wrap it with an Ant script, see [[Starting Eclipse Commandline With Equinox Launcher]]. | ||
− | [[Category:Equinox_p2]] [[Category:Equinox_p2_Director]] | + | [[Category:Equinox_p2|Director]] [[Category:Equinox_p2_Director]] |
Latest revision as of 04:04, 13 January 2011
To install the GMF SDK and all its prereqs from the Ganymede Update site directly into the dropins folder, run this:
#!/bin/bash ############### start of configuration block ############### workspace=/tmp/workspace-clean-34 eclipseroot=~/eclipse/34clean/p2director installTargetFeatureGroup=org.eclipse.gmf.sdk.feature.group bundlepoolDir=$eclipseroot/eclipse/dropins/${installTargetFeatureGroup}/eclipse arc=`uname -m` eclipseFancyName=helios metadataRepository=http://download.eclipse.org/releases/$eclipseFancyName artifactRepository=$metadataRepository #eclipseTarGz=eclipse-SDK-3.4-linux-gtk.tar.gz # this one isn't the smallest for testing though: # http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/heliossr1 eclipseTarGz=/tmp/eclipse-jee-helios-SR1-linux-gtk-x86_64.tar.gz #vm=/opt/sun-java2-5.0/bin/java #vm=/opt/ibm-java2-5.0/bin/java # let's use default Java (explicit path) vm=`which java` ############## end of configuration block ############### pushd $eclipseroot >/dev/null if [[ $# -eq 0 ]]; then rm -fr eclipse $workspace $bundlepoolDir echo "[`date +%H:%M:%S`] Unpack $eclipseTarGz ..."; tar xzf $eclipseTarGz fi 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 org.eclipse.equinox.p2.director \ -metadataRepository $metadataRepository \ -artifactRepository $artifactRepository \ -installIU ${installTargetFeatureGroup} \ -destination $eclipseroot \ -bundlepool $bundlepoolDir \ -profile ${installTargetFeatureGroup}.profile \ -profileProperties org.eclipse.update.install.features=true \ -p2.os linux -p2.ws gtk -p2.arch $arc \ -vmargs \ -Declipse.p2.data.area=$eclipseroot/eclipse/p2 \ -Xms128M -Xmx256M -XX:PermSize=128M -XX:MaxPermSize=256M echo "Installed sizes: "; du -shc $eclipseroot/eclipse $bundlepoolDir 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.