Installing Plugins From Command Line (Linux) [message #645858] |
Mon, 20 December 2010 20:03 |
Matthew Hoggan Messages: 4 Registered: July 2009 |
Junior Member |
|
|
Hello all,
Today, I am trying to install plugins from the command line. The reason for doing so, is because I have to set up a development on a VM immediately after it is instantiated. Basically I am trying to automate things, thus I don't have VNC or SSH over -x11 to install from the GUI. I have started the shell script but am stuck on some of the documentation found at:
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/reference/misc/update_standalone.html
my shell script can be seen below.
ECLIPSE_VER=eclipse-SDK-3.6.1-linux-gtk-x86_64
ECLIPSE_SRC_PATH=/home/${USER}/eclipse_install
ECLIPSE_INST_PATH=/home/${USER}/eclipse
ECLIPSE_PLUGIN_INST=${ECLIPSE_INST_PATH}/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
export ECLIPSE_INST_PATH
if [ -d "/home/${USER}" ]
then
echo "/home/${USER} exits"
if [ -d "${ECLIPSE_INST_PATH}" ]
then
echo "Weclome back $USER"
exit
else
cd /home/${USER}/
tar -xvf ${ECLIPSE_SRC_PATH}/${ECLIPSE_VER}.tar.gz
cd ${ECLIPSE_INST_PATH}
java -jar ${ECLIPSE_PLUGIN_INST} \
-application org.eclipse.update.core.standaloneUpdate \
-command addSite \
-from http://download.eclipse.org/tools/cdt/releases/helios
fi
else
echo "/home/${USER}/" does not exist
fi
Any help in using the java -jar ${ECLIPSE_PLUGIN_INST} -command install -from ${URL} command correctly would be greatly appreciated.
Thank you,
Matthew Hoggan
[Updated on: Mon, 20 December 2010 20:36] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03220 seconds