Skip to main content
Jump to: navigation, search

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

m (reorg'ed the page)
m (Building SMILA from command line)
Line 48: Line 48:
 
===== Building SMILA from command line =====
 
===== Building SMILA from command line =====
  
The <tt>SMILA.builder\ make.bat </tt> is used by bamboo (continuous integration server) so dont update it in SVN unless u know what u are doing!
+
The make.bat (or .sh) is just a shell script to set the properties that are need for the ant script.
 
+
There is a template version of this with the ending .#~#~#. Copy that over the make.bat or use another name to ur liking.
+
  
 
Steps:
 
Steps:

Revision as of 09:56, 23 January 2009

Howto set up dev environment

dev env

Howto build and test locally

Setup an own Eclipse instance/installation for building

Setting up an own instance is recommended such that no extensions/features u might have installed in ur eclipse instance u use for developing interferes with the build. It probably also makes the build a little fasters as the headless start of eclipse tales less time due to fewer plug-ins installed.

  1. Download an eclipse SDK, eg. eclipse-SDK-3.3-win32
  2. download eclipse-RCP-3.3.2-delta-pack.zip from [1]
  3. unzip the archive and copy org.eclipse.equinox.executable_<version> from features into your features folder under your eclipse installation.
  1. start that eclipse and add sole extension location to WC /SMILA.extension by:
    1. Menu: Help / Software Updates / Manage configuration
    2. add extension location and choose the folder SMILA.extension/eclipse from smila project folder

Building smila

This folder SMILA.builder contains everything needed to build SMILA and/or run all tests locally.

Whether u build from command line or from eclipse, in both cases the make.xml ant script is executed. Before execution certain properties need to be set to meet the local setup.

For the build from eclipse u pass in these values via the command line text box in the launch config on the command line these are set in a shell script.

Building SMILA from within eclipse
  1. select the SMILA.builder bundle
  2. open External Tools Dialog
  3. create a new ant build configuration or choose your configuration if exists
  4. choose the build file of this bundle, e. g. ${workspace_loc:/SMILA.builder/make.xml}
  5. insert the following arguments (but adapt these to your setup)
    -DbuildDirectory=D:/eccenca/SMILA/eclipse.build
    -Declipse.home=D:/eclipse33
    -Dbuilder=D:/eccenca/SMILA/SMILA.builder
    -Declipse.running=true
    -DpdeBuildPluginVersion=3.3.2.v20071019(default)
    -DequinoxLauncherPluginVersion=1.0.1.R33x_v200080118(default)
    -Dos=win32 -Dws=win32 -Darch=x86
    -Dtest.java.home=D:/java/jre1.5.0_11
  6. Apply, close and run SMILA.builder with this external tool configuration
Building SMILA from command line

The make.bat (or .sh) is just a shell script to set the properties that are need for the ant script.

Steps:

  1. adjust all paths in \SMILA.builder\make.bat according to own setup
  2. execute make.bat

The whole process takes about 15 minutes at the time of writing, so be patient or get some java-like beverage ;)

run junit tests for osgi bundles

  • Plugin Junit Launch config
  • write config.ini and ref it from lauch config.
    tip: use \ to brake up long lines to have better overview
  • share the launch config

For further information see: Development Guidelines

Back to the top