Building Eclipse Plugins and RCP applications with Tycho

4,278 views

Published on

Published in: Technology
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,278
On SlideShare
0
From Embeds
0
Number of Embeds
152
Actions
Shares
0
Downloads
83
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide
  • Limited support: build.properties, *.target files (but no longer different interpretation)Dependencies: OSGi Manifest Only = manifest first; dependencies in POM ignored/special semantics
  • Tycho uses JDT compiler – respects package visibility rules (export package)
  • Tycho is the first Maven plug-in at Eclipse
  • Contributors: SAP AG – various; Inventage AG – Beat Strasser; plus a couple of small contributionsRecent = last 6 monthsCDT = Eclipse's C/C++ Development ToolingCommercial adoption: SAP OSGi based tools/servers; JBoss tools (large project -> separate talk)
  • Building Eclipse Plugins and RCP applications with Tycho

    1. 1. BUILDING ECLIPSE PLUG-INSAND RCP APPLICATIONSWITH TYCHOTobias Oberlies & Jan Sievers, SAP AG
    2. 2. Outline Part 1: Introduction  What is Tycho?  Re-uses PDE Metadata and Concepts  Integrates with Maven  Speaks p2  Who & where is Tycho Part 2: Hands-on Tutorial  Building an RCP application with TychoCopyright (c) 2011 SAP AG and others. Licensed under EPL v1.0 2.11.2011
    3. 3. Part 1: IntroductionCopyright (c) 2011 SAP AG and others. Licensed under EPL v1.0 2.11.2011
    4. 4. What is Tycho? Tycho is a Maven extension for building  Eclipse plug-ins/OSGi bundles  Features  p2 Repositories  RCP Applications Tycho runs JUnit tests in an OSGi runtimeCopyright (c) 2011 SAP AG and others. Licensed under EPL v1.0 2.11.2011
    5. 5. Characteristics – Part 1 Tycho re-uses PDE metadata files  OSGi manifest (META-INF/MANIFEST.MF)  build.properties  feature.xml  site.xml/category.xml  *.product files  *.target files Tycho re-uses PDE concepts  Target platform – but there is one per project :-)Copyright (c) 2011 SAP AG and others. Licensed under EPL v1.0 2.11.2011
    6. 6. Characteristics – Part 2 Tycho runs like normal Maven builds Tycho can be combined with other Maven plug-ins  QA tools: FindBugs, Checkstyle, PMD, ...  Code generators  ... Tycho integrates with Maven  Follow conventions for build output folder  Inject OSGi dependencies into Maven model  Inject compile class-path (approximation)Copyright (c) 2011 SAP AG and others. Licensed under EPL v1.0 2.11.2011
    7. 7. Characteristics – Part 3 Tycho speaks p2  Retrieves dependencies from p2 repositories  Produces p2 repositories Tycho is based on p2  Test runtime is test bundle plus dependencies (resolved with p2)  Original p2 metadata is preserved – no re-publishing Note: Some legacy parts are not “p2 natives”  eclipse-update-site, eclipse-applicationCopyright (c) 2011 SAP AG and others. Licensed under EPL v1.0 2.11.2011
    8. 8. Where is Tycho? Tycho is an incubator project at Eclipse  Tycho sources are at Eclipse since September 2011  Thanks to Wayne Beaton for paving our way  Documentation: wiki.eclipse.org/Tycho  Mailing lists: tycho-user, tycho-dev  Issue tracker: Bugzilla Tycho 0.13.0 is available from Maven centralCopyright (c) 2011 SAP AG and others. Licensed under EPL v1.0 2.11.2011
    9. 9. Contributors & Users Committers  Tobias Oberlies (SAP AG)  Jan Sievers (SAP AG)  Igor Fedorenko (Sonatype Inc.) Recent contributions from SAP AG, Inventage AG, and others Users  EGit, m2eclipse, CDT, JBoss tools, ...  ~45 threads/month on tycho-usersCopyright (c) 2011 SAP AG and others. Licensed under EPL v1.0 2.11.2011
    10. 10. Part 2: Hands-on TutorialCopyright (c) 2011 SAP AG and others. Licensed under EPL v1.0 2.11.2011
    11. 11. Hands-on Exercises Step by step we will set up a typical Tycho build for an RCP application:  Create a Hello World RCP plugin  Add unit tests  Add a feature  Create a p2 repository  Add a product  Use a target fileCopyright (c) 2011 SAP AG and others. Licensed under EPL v1.0 2.11.2011
    12. 12. Hands-On Setup 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.htmlCopyright (c) 2011 SAP AG and others. Licensed under EPL v1.0 2.11.2011

    ×