Examples for using Tycho to build OSGi plugins
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
se.mattiasholmqvist.tychoexamples.bundle.tests
se.mattiasholmqvist.tychoexamples.bundle
se.mattiasholmqvist.tychoexamples.eclemma.runtime.equinox
se.mattiasholmqvist.tychoexamples.feature
se.mattiasholmqvist.tychoexamples.parent
se.mattiasholmqvist.tychoexamples.targetplatform
se.mattiasholmqvist.tychoexamples.updates
.gitignore
README.md

README.md

Sample code for Tycho builds

Copyright 2010 Mattias Holmqvist. All rights reserved.

What is this?

This project contains sub-projects that will show you how to use Tycho for:

  • Building OSGi bundles
  • Building Eclipse features
  • Building Eclipse Update sites
  • Run unit tests for code in an OSGi bundle
  • Code coverage with EclEmma

Download the source .tar or .zip. Unpack the sources to a folder somewhere.

How to use the projects from within Eclipse

  1. Create a new Eclipse workspace.
  2. Choose "Import->Existing projects into workspace"
  3. Select all "se.mattiasholmqvist.*" projects from the source folder.
  4. Open the se.mattiasholmqvist.tychoexamples.target project and select the example_target.target file. Choose "Set as target platform" from the Target Definition Editor.

How to build everything with Tycho?

  1. Download and install a version of Maven 3.
  2. Open a command line shell.
  3. Go to the se.mattiasholmqvist.tychoexamples.parent project folder.
  4. Enter: mvn clean package

Run unit tests with code coverage:

mvn integration-test verify -Pcoverage

Want more help?

Checkout my website for some complementary articles or Sonatype's Tycho site.