From ec84110a74f75689ba82629e1710228e34f0b009 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Thu, 26 Sep 2013 13:39:27 -0700 Subject: [PATCH] dev-manual: Updates to "Working with Eclipse" section. I added a step on making sure they have Oracle JDK in there to the section that builds the plugin. Also, removed the third method to install the plugin. (From yocto-docs rev: cfd2b88717a709049155a8ff15134b617fc6e172) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/dev-manual/dev-manual-model.xml | 94 ++++++------------- 1 file changed, 27 insertions(+), 67 deletions(-) diff --git a/documentation/dev-manual/dev-manual-model.xml b/documentation/dev-manual/dev-manual-model.xml index 334ae16276..761ac982a5 100644 --- a/documentation/dev-manual/dev-manual-model.xml +++ b/documentation/dev-manual/dev-manual-model.xml @@ -749,12 +749,8 @@ You can install the Eclipse Yocto Plug-in into the Eclipse IDE one of two ways: use the Yocto Project's Eclipse - Update site to install the pre-built plug-in, or build and + Update site to install the pre-built plug-in or build and install the plug-in from the latest source code. - If you do not want to permanently install the plug-in but - just want to try it out within the Eclipse environment, - you can import the plug-in project from the Yocto Project's - Source Repositories.
@@ -807,10 +803,29 @@ To install the Eclipse Yocto Plug-in from the latest source code, follow these steps: - Open a shell and create a Git + Be sure your development system + is not using OpenJDK to build the plug-in + by doing the following: + + Use the Oracle JDK. + If you don't have that, go to + + and download the appropriate tarball + for your development system and + extract it into your home directory. + + In the shell you are going + to do your work, export the location of + the Oracle Java as follows: + + export PATH=~/jdk1.7.0_40/bin:$PATH + + + In the same shell, create a Git repository with: - $ git clone git://git.yoctoproject.org/eclipse-poky-kepler yocto-eclipse + $ cd ~ + $ git clone git://git.yoctoproject.org/eclipse-poky-kepler If you are using Juno, the repository is @@ -818,19 +833,19 @@ git://git.yoctoproject.org/eclipse-poky-juno. For this example, the repository is named - ~/yocto-eclipse. + ~/eclipse-poky-kepler. Change to the directory where you set up the Git repository: - $ cd ~/yocto-eclipse + $ cd ~/eclipse-poky-kepler Be sure you are in the right branch for your Git repository. For this release set the branch to &DISTRO_NAME;: - $ git checkout -b &DISTRO_NAME; origin/&DISTRO_NAME; + $ git checkout &DISTRO_NAME; Change to the scripts @@ -857,7 +872,7 @@ Here is an example that uses the &DISTRO_NAME; branch: - $ ECLIPSE_HOME=/home/scottrif/yocto-eclipse/scripts/eclipse ./build.sh &DISTRO_NAME; &DISTRO_NAME; + $ ECLIPSE_HOME=/home/scottrif/eclipse-poky-kepler/scripts/eclipse ./build.sh &DISTRO_NAME; &DISTRO_NAME; After running the script, the file org.yocto.sdk-<release>-<date>-archive.zip @@ -879,7 +894,7 @@ Click through the "Okay" buttons. - Check the box next to the new entry + Check the boxes in the installation window and complete the installation. Restart the Eclipse IDE if @@ -893,61 +908,6 @@ "Configuring the Eclipse Yocto Plug-in" section.
- -
- Importing the Plug-in Project into the Eclipse Environment - - - Importing the Eclipse Yocto Plug-in project from the - Yocto Project source repositories is useful when you - want to try out the latest plug-in from the tip of - plug-in's development tree. - It is important to understand when you import the - plug-in you are not installing it into the Eclipse - application. - Rather, you are importing the project and just using it. - - - - To import the plug-in project, follow these steps: - - Open a shell and create a Git - repository with: - - $ git clone git://git.yoctoproject.org/eclipse-poky-kepler yocto-eclipse - - - The Juno repository is located at - git://git.yoctoproject.org/eclipse-poky-juno - - For this example, the repository is named - ~/yocto-eclipse. - - In Eclipse, select "Import" from - the "File" menu. - Expand the "General" box and select - "existing projects into workspace" and then - click "Next". - Select the root directory and - browse to - ~/yocto-eclipse/plugins. - - Three plug-ins exist: - org.yocto.bc.ui, - org.yocto.sdk.ide, and - org.yocto.sdk.remotetools. - Select and import all of them. - - - - - The left navigation pane in the Eclipse application - shows the default projects. - Right-click on one of these projects and run it as an - Eclipse application to bring up a second instance of - Eclipse IDE that has the Yocto Plug-in. - -