Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Starting Eclipse Commandline With Equinox Launcher/p2 Admin UI"

m
m
Line 8: Line 8:
 
  pushd $eclipsehome >/dev/null
 
  pushd $eclipsehome >/dev/null
 
  if <nowiki>[[ $# -eq 0 ]]</nowiki>; then
 
  if <nowiki>[[ $# -eq 0 ]]</nowiki>; then
         rm -fr $eclipsehome/eclipse $workspace;
+
         rm -fr $eclipsehome/eclipse $workspace
         mkdir -p $eclipsehome/eclipse;
+
         mkdir -p $eclipsehome/eclipse
        cd eclipse
+
         p2=equinox-p2-agent-3.4-linux.tar.gz
         p2=../equinox-p2-agent-3.4-linux.tar.gz
+
         echo "Unpack $p2..."
         echo "Unpack $p2...";
+
         tar xzf $p2 -C eclipse
         tar xzf $p2
+
        cd ..;
+
 
  fi
 
  fi
 
  cp=$(find $eclipsehome -name "org.eclipse.equinox.launcher_*.jar" | sort | tail -1);
 
  cp=$(find $eclipsehome -name "org.eclipse.equinox.launcher_*.jar" | sort | tail -1);

Revision as of 14:11, 7 July 2008

If you're looking to start up the Equinox p2 Admin UI from the commandline using Java instead of eclipse.exe, here's one way:

#!/bin/bash
vm=/opt/sun-java2-5.0/bin/java
eclipsehome=~/eclipse/34clean/p2
workspace=$eclipsehome/workspace

pushd $eclipsehome >/dev/null
if [[ $# -eq 0 ]]; then
       rm -fr $eclipsehome/eclipse $workspace
       mkdir -p $eclipsehome/eclipse
       p2=equinox-p2-agent-3.4-linux.tar.gz
       echo "Unpack $p2..."
       tar xzf $p2 -C eclipse
fi
cp=$(find $eclipsehome -name "org.eclipse.equinox.launcher_*.jar" | sort | tail -1);
$vm -cp $cp org.eclipse.equinox.launcher.Main -data $workspace \
  -consolelog -clean -debug -console -noexit \
  -vmargs -Xms128M -Xmx256M -XX:PermSize=128M -XX:MaxPermSize=256M

popd >/dev/null

If you want to do the same with an Ant or Cmd/Bat script, see Starting Eclipse Commandline With Equinox Launcher for how to write an equivalent script.

Back to the top