Skip to main content
Jump to: navigation, search

Difference between revisions of "SMILA/Documentation/HowTo/Howto set up dev environment"

m (Checkout sources from Eclipse svn)
m (Checkout sources from Eclipse svn)
Line 2: Line 2:
 
=== Setup an Eclipse instance/installation for SMILA ===
 
=== Setup an Eclipse instance/installation for SMILA ===
  
==== Checkout sources from Eclipse svn ====
+
==== Requirements ====
  
First of all you have to checkout the sources, configuration files and build files from Eclipse svn to your harddrive (e.g. e:/Smila) or directly into Eclipse.
+
:* Checkout sources from Eclipse svn
  
 
* svn location
 
* svn location

Revision as of 10:29, 1 April 2009

Setup an Eclipse instance/installation for SMILA

Requirements

  • Checkout sources from Eclipse svn
  • svn location
http://dev.eclipse.org/svnroot/rt/org.eclipse.smila/

Installation and configuration of Eclipse (3.4)

After getting SMILA relevant files you have to install and configure Eclipse.

  1. Download an eclipse SDK, starting with at least eclipse-SDK-3.4.1-win32.zip.
  2. Download eclipse-3.4.1-delta-pack.zip.
  3. Unzip the archive and copy org.eclipse.equinox.executable_<version> from features into your features folder under your eclipse installation.
  4. Copy all necessary plug-ins (containing linux.x86 or win32.x86) from plugins into your plugins folder under your eclipse installation.
  5. Start that Eclipse and set up a custom target platform:
  • Unzip SMILA-xxx-.zips:
  • Copy test specific plug-ins to Smila target platform:
  • Copy org.junit_3.8.2xxx from the “plugins” folder of your eclipse installation or copy org.junit_3.8.2.v200706111738 from Smila-test-and-sample folder to your Smila installation (e.g. E:\ SMILA-incubation-win32.win32.x86/plugins).
  • Copy org.eclipse.smila.test_0.5.0.jar from Smila-test-and-sample folder to your Smila installation (e.g. E:\ SMILA-incubation-win32.win32.x86/plugins).
  • Start eclipse and set the target platform location to this folder (e.g. E:\SMILA-incubation-win32.win32.x86).
Click Window --> Preferences --> Plug-in Development --> Target Platform

Import SMILA sources into your Eclipse workspace

  • Start Eclipse and import SMILA sources:
  • Click File --> Import
  • Expand General and choose Existing Projects into Workspace

Import-wizard.png


  • Click Next, set the root directory (e.g. e:/Smila), select all and then click Finish

Import-root.png


  • After you followed the steps above, you should have the following structure in your Package Explorer

Package-explorer.png

Launch SMILA in Eclipse

There is a folder SMILA.launch located in our trunk. This folder contains two launch configuration files for Eclipse. With these two files (one for windows (SMILA) and one for linux(SMILA-linux)) you have the possibility to start SMILA in Eclipse. Follow the steps below:

  • Click Debug --> Debug Configurations and expand OSGI Framework
  • Select launch file for your environment and press Debug

Launch-smila.png


  • If everything is started correctly, you will get an output in the Eclipse Console like below:

Console.png

Back to the top