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

From Eclipsepedia

Jump to: navigation, search
m
m (See Also)
 
(7 intermediate revisions by one user not shown)
Line 1: Line 1:
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:
+
=Admin UI RCP App=
 +
 
 +
[[Image:P2-admin-ui-RCP.png|right|thumb]] If you're looking to start up the [[Equinox_p2_Admin_UI_Users_Guide|Equinox p2 Admin UI]] from the commandline using Java instead of eclipse.exe, here's one way:
  
 
  #!/bin/bash
 
  #!/bin/bash
 
  vm=/opt/sun-java2-5.0/bin/java
 
  vm=/opt/sun-java2-5.0/bin/java
  eclipsehome=~/eclipse/34clean/p2
+
  eclipsehome=~/eclipse/p2
 
  workspace=$eclipsehome/workspace
 
  workspace=$eclipsehome/workspace
 
   
 
   
 
  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);
Line 22: Line 22:
 
   
 
   
 
  popd >/dev/null
 
  popd >/dev/null
 +
 +
=Admin UI Eclipse Perspective=
 +
 +
[[Image:P2-admin-ui-in-Ganymede.png|right|thumb]] To run the [[Equinox_p2_Admin_UI_Users_Guide|Equinox p2 Admin UI]] from within a full Eclipse install, you need to install some extra plugins into Eclipse, or install Eclipse into the p2 agent. The latter is [[Equinox_p2_Admin_UI_Users_Guide#Overview_of_the_Eclipse_Provisioning_RCP_Agent|documented here]]. The former can be done like this:
 +
 +
#!/bin/bash
 +
vm=/opt/sun-java2-5.0/bin/java
 +
eclipsehome=~/eclipse/p2_eclipse;
 +
workspace=$eclipsehome/workspace
 +
 +
pushd $eclipsehome >/dev/null
 +
if <nowiki>[[ $# -eq 0 ]]</nowiki>; then
 +
        rm -fr $eclipsehome/eclipse $workspace;
 +
        mkdir -p $eclipsehome/eclipse;
 +
        eclipse=eclipse-SDK-3.4-linux-gtk.tar.gz
 +
        echo "Unpack $eclipse...";
 +
        tar xzf $eclipse
 +
        p2=equinox-p2-agent-3.4-linux.tar.gz
 +
        echo "Unpack $p2 into dropins"
 +
        mkdir -p $eclipsehome/eclipse/dropins/p2
 +
        tar xzf $p2 -C $eclipsehome/eclipse/dropins/p2
 +
        rm -fr $eclipsehome/eclipse/dropins/p2/{dropins,libcairo-swt.so,p2,artifacts.xml,configuration,eclipse,eclipse.ini}
 +
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
 +
 +
Once started, open the Provisioning perspective.
 +
 +
----
  
 
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.
 
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.
 +
 +
=See Also=
 +
 +
* [[Equinox p2 Admin UI Users Guide]]
 +
* [[Equinox p2 Getting Started Admin UI]]
 +
* [[:Category:Equinox p2]]
 +
 +
 +
[[Category:Releng]] [[Category:Equinox]] [[Category:Equinox_p2]] [[Category:Java]]
 +
[[Category:Launcher]]

Latest revision as of 14:32, 7 July 2008

[edit] Admin UI RCP App

P2-admin-ui-RCP.png
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/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

[edit] Admin UI Eclipse Perspective

P2-admin-ui-in-Ganymede.png
To run the Equinox p2 Admin UI from within a full Eclipse install, you need to install some extra plugins into Eclipse, or install Eclipse into the p2 agent. The latter is documented here. The former can be done like this:
#!/bin/bash
vm=/opt/sun-java2-5.0/bin/java
eclipsehome=~/eclipse/p2_eclipse;
workspace=$eclipsehome/workspace

pushd $eclipsehome >/dev/null
if [[ $# -eq 0 ]]; then
       rm -fr $eclipsehome/eclipse $workspace;
       mkdir -p $eclipsehome/eclipse;
       eclipse=eclipse-SDK-3.4-linux-gtk.tar.gz
       echo "Unpack $eclipse...";
       tar xzf $eclipse
       p2=equinox-p2-agent-3.4-linux.tar.gz
       echo "Unpack $p2 into dropins"
       mkdir -p $eclipsehome/eclipse/dropins/p2
       tar xzf $p2 -C $eclipsehome/eclipse/dropins/p2
       rm -fr $eclipsehome/eclipse/dropins/p2/{dropins,libcairo-swt.so,p2,artifacts.xml,configuration,eclipse,eclipse.ini}
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

Once started, open the Provisioning perspective.


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.

[edit] See Also