tycho tutorial eclipsecon 2013

16
BUILDING ECLIPSE PLUG- INS AND RCP APPLICATIONS WITH TYCHO Tobias Oberlies & Jan Sievers, SAP AG 25.03.2013

Upload: jsievers

Post on 13-May-2015

7.617 views

Category:

Technology


2 download

DESCRIPTION

Slides of the EclipseCon 2013 session "Building Eclipse Plugins and RCP applications with Tycho"

TRANSCRIPT

Page 1: Tycho Tutorial EclipseCon 2013

BUILDING ECLIPSE PLUG-INS AND RCP APPLICATIONS WITH TYCHO

Tobias Oberlies & Jan Sievers, SAP AG25.03.2013

Page 2: Tycho Tutorial EclipseCon 2013

Part 1: Introduction 9:00 am – 9:30 am Tycho Overview

Part 2: Hands-on Tutorial 9:30 am – 12:00 pm Building an e4 RCP application with Tycho

Tutorial Outline

25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0

Page 3: Tycho Tutorial EclipseCon 2013

Part 1: Introduction

25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0

Page 4: Tycho Tutorial EclipseCon 2013

Tycho is a Maven extension for building Eclipse artifacts Eclipse plug-ins/OSGi bundles Features p2 repositories RCP applications/Eclipse distributions

What is Tycho?

25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0

Page 5: Tycho Tutorial EclipseCon 2013

Related Technologies

25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0

Maven

Plug-in Developme

nt Environmen

t (PDE)

Equinox p2

Tycho

Page 6: Tycho Tutorial EclipseCon 2013

Maven and Tycho

mvn clean install Packaging types for

standard artifacts Tests run in build Customize build

with additional goals (FindBugs, code generators, …)

mvn clean installeclipse-plugin,

eclipse-feature, …eclipse-test-pluginMost Maven

plugins also work in Tycho projects

Maven Tycho

25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0

Page 7: Tycho Tutorial EclipseCon 2013

Maven and Tycho (cont.)

Dependencies declared in pom.xml

Dependencies declared in MANIFEST.MF, …

Maven Tycho

25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0

Maven extension for OSGi/Eclipse artifacts

Page 8: Tycho Tutorial EclipseCon 2013

PDE and Tycho

MANIFEST.MF, feature.xml, build.properties, ...

Build path according to OSGi manifest

JUnit plug-in tests

Tycho reads PDE source files

JDT compiler with OSGi visibility rules

eclipse-test-plugin

Plug-in Development Environment (PDE)

Tycho

25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0

Headless build for PDE projects

Page 9: Tycho Tutorial EclipseCon 2013

p2 and Tycho

p2 repositories for installation & update of bundles

“Publish” artifacts to p2 repositories

Installer (“director”)

p2 repositories for resolving build dependencies

Builds p2 repositories with build artifacts

tycho-director-plugin

Equinox p2 Tycho

25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0

Maven front-end for p2

Page 10: Tycho Tutorial EclipseCon 2013

Tycho is a Technology incubator project at Eclipse Sources are at git.eclipse.org (and mirrored to

github) Documentation: wiki.eclipse.org/Tycho Mailing lists: tycho-user, tycho-dev Issue tracker: Bugzilla Contributor guide: wiki.eclipse.org/Tycho/

Contributor_Guide

Tycho 0.17.0 is available from Maven central

Where is Tycho?

25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0

Page 11: Tycho Tutorial EclipseCon 2013

Committers Jan Sievers (SAP AG) Tobias Oberlies (SAP AG) Igor Fedorenko (Sonatype Inc.)

Various contributions Users

Eclipse platform and many other Eclipse projects “Common Build Infrastructure” (CBI): Services for

Tycho adoption at eclipse.org Commercial users: JBoss tools, Sigasi, SAP AG, …

Contributors & Users

25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0

Page 12: Tycho Tutorial EclipseCon 2013

Part 2: Hands-on Tutorial

25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0

Page 13: Tycho Tutorial EclipseCon 2013

Create and build an Eclipse 4 RCP application Create a plug-in with a sample Eclipse 4

RCP application Add a unit test Add a feature Create a p2 repository Build a distribution with the RCP application

Hands-on Exercises

25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0

Page 14: Tycho Tutorial EclipseCon 2013

Everything you need for the exercises is provided on the USB stick we handed out

The exercise instructions are fully self-contained

Start with tutorial/README.html

Hands-On Setup

25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0

Page 15: Tycho Tutorial EclipseCon 2013

Tycho BoF Mon 8:00 pm, Seaport Ballroom B

Presentations from Tycho users Real World: Tycho Tue 5:00 pm, Cityview

Ballroom 2 From Custom Maven Builds to Tycho

Wed 10:30 am, Back Bay Automating the consumption of Eclipse for int

ernal use Thu 1:30 pm, Harborview Ballroom 2

Comparison of build technologies Bundle Building Wed 1:30 pm, Beacon Hill 1

Related Sessions

25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0

Page 16: Tycho Tutorial EclipseCon 2013

Please give feedback!

25.03.2013Copyright (c) 2013 SAP AG and others. Licensed under EPL v1.0

1. Sign In: www.eclipsecon.org

2. Select Session Evaluate

3. Vote