Jump to: navigation, search

Difference between revisions of "IAM Target Platform"

(A couple of notes about the use of the ant script)
 
Line 5: Line 5:
  
 
==  Install a new eclipse SDK ==
 
==  Install a new eclipse SDK ==
#Download the SDK from:
+
#Download the Eclipse SDK from:
#* http://download.eclipse.org/eclipse/downloads/drops/R-3.4.1-200809111700/index.php
+
#* http://download.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700/index.php
 
# In order to benefit from the ant script to populate the eclipse installation, you will have to make sure you unpack the the eclipse installation into a folder called 'eclipse'.  
 
# In order to benefit from the ant script to populate the eclipse installation, you will have to make sure you unpack the the eclipse installation into a folder called 'eclipse'.  
 
#: You can also utilize the <tt>[http://dev.eclipse.org/svnroot/technology/org.eclipse.iam/trunk/dev-tools ../trunk/dev-tools]/eclipse</tt> folder as a default location to put your SDK installation into.
 
#: You can also utilize the <tt>[http://dev.eclipse.org/svnroot/technology/org.eclipse.iam/trunk/dev-tools ../trunk/dev-tools]/eclipse</tt> folder as a default location to put your SDK installation into.

Latest revision as of 20:30, 16 November 2009

< To: IAM Environment

Setting up the Target Platform

This page describes the process for setting up the target platform used to build IAM.

Install a new eclipse SDK

  1. Download the Eclipse SDK from:
  2. In order to benefit from the ant script to populate the eclipse installation, you will have to make sure you unpack the the eclipse installation into a folder called 'eclipse'.
    You can also utilize the ../trunk/dev-tools/eclipse folder as a default location to put your SDK installation into.
    Don't worry, that directory is ignored from being committed via an svn:ignore directive.

Example:

[dev-tools]$ pwd
/home/joakim/code/iam/trunk/dev-tools
 
[dev-tools]$ svn info . | grep URL
URL: https://dev.eclipse.org/svnroot/technology/org.eclipse.iam/trunk/dev-tools
 
[dev-tools]$ ls -l
total 154976
drwxr-xr-x 9 joakim joakim      4096 2008-12-05 14:20 eclipse/
-rw-r--r-- 1 joakim joakim      3652 2008-12-05 09:58 eclipse-iam-cleanup.xml
-rw-r--r-- 1 joakim joakim     27973 2008-12-05 09:58 eclipse-iam-codestyle.xml
-rw-r--r-- 1 joakim joakim       107 2008-12-05 09:58 eclipse-iam.importorder
-rw-r--r-- 1 joakim joakim       557 2008-12-05 09:58 eclipse-iam-java-templates.xml
-rw------- 1 joakim joakim 158459954 2008-12-05 11:39 eclipse-SDK-3.4.1-linux-gtk.tar.gz
lrwxrwxrwx 1 joakim joakim        34 2008-12-05 11:40 eclipse-SDK-3.4.1.tar.gz -> eclipse-SDK-3.4.1-linux-gtk.tar.gz
-rw-r--r-- 1 joakim joakim       369 2008-12-05 09:58 header-feature.txt
-rw-r--r-- 1 joakim joakim       306 2008-12-05 09:58 header-java.txt
-rw-r--r-- 1 joakim joakim       456 2008-12-05 09:58 header-properties.txt
-rw-r--r-- 1 joakim joakim       309 2008-12-05 09:58 header-xml.txt
-rw-r--r-- 1 joakim joakim      6603 2008-12-05 09:58 iam-prep-target-platform.xml
drwxr-xr-x 3 joakim joakim      4096 2008-12-05 11:41 workspace/

Install the required bundles

The iam-prep-target-platform.xml (ANT Script) uses Ant 1.6.5+ & the P2.director application to populate the target-platform with the selection of plugins and features that IAM uses to build & test against.

The iam-prep-target-platform.xml ant script is checked into subversion at [1], you should check out all of trunk anyway if you are going to be working on IAM.

Symbol comment vote.png Advanced users can create a local.properties file on the script folder to override the defaults used.

Basic operation of ant script...

[dev-tools]$ ant -f iam-prep-target-platform.xml
The script execution will download bundles not hosted at eclipse.org

The ant script expects an Eclipse SDK installation to be present in the trunk/dev-tools/eclipse folder.

  • Most bundles come from ganymede update site.
    • (TODO: specify versions to avoid changes with maintenance releases.)
  • AJDT is downloaded from the AJDT update site.
  • Some bundles are downloaded from Orbit.
  • JTidy is downloaded from q4e.
    • (TODO: a CQ for JTidy it is warranted, but maybe not needed if we upgrade the embedder)

Configure a target definition

Target platforms are managed through target definition files. You will need to set up your own target definitions.

  1. Start your eclipse (i.e. do not use the new installation you've just set up)
  2. Create a new (simple) project. You can name it IAM Target Platform
    Iam-3-new-project-target-platform.png
  3. Select the IAM Target Platform project and create a new Target Definition.
    File > New > Other... > Plug-in Development > Target Definiton
    Iam-4-new-target-definition.png
  4. Fill out the Target Definition Details
    1. Select the IAM Target Platform project you created earlier.
    2. Enter 'iam-ganymede as the name of the file. (NOTE: dialog will supply the ".target" suffix on its own)
    3. Select the "Create a target with basic settings" for the file content selection.
    4. You are done. Select Finish.
    Iam-5-target-definition-details.png
  5. At this point you will have Target Definition Overview page presented to you. Fill it out accordingly.
    1. Set Target Name to IAM Ganymede
    2. Set Target Location to your .../trunk/dev-tools/eclipse folder that you initialized in the previous section.
    Iam-6-target-definition-overview.png
  6. Now we need to set this configuration as the Target Platform. Click on Set as Target Platform (you will need to repeat this last step if you change the bundles installed on your target definition).
    Iam-7-set-as-target-platform.png
  7. Almost done, now verify that the Target Platform has been created successfully.
    Window > Preferences > Plug-in Development > Target Platform
    Iam-8-preferences-target-platform.png