Pde build
Upcoming SlideShare
Loading in...5
×
 

Pde build

on

  • 2,405 views

How to set up and run PDE build: http://owenou.com/blog/2010/09/19/how-to-set-up-and-run-pde-build/

How to set up and run PDE build: http://owenou.com/blog/2010/09/19/how-to-set-up-and-run-pde-build/

Statistics

Views

Total Views
2,405
Views on SlideShare
2,400
Embed Views
5

Actions

Likes
0
Downloads
7
Comments
0

2 Embeds 5

https://www.linkedin.com 3
http://www.linkedin.com 2

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />

Pde build Pde build Presentation Transcript

  • How to set up and run PDE build Owen Ou @JingwenOwenOu http://owenou.com/blog/2010/09/19/how-to-set-up-and-run-pde-build/
  • What’s PDE headless build? • automation of plug-ins build process • a bundle that can be executed through command line => “headless” • can also manually build it with Eclipse UI => “head” • demo • source + target platform + build.properties => PDE builder => generated build.xml => run • Maven Tycho (internally running PDE build)
  • Pre-requirement of PDE build • three folders: • build directory • target platform • build configuration file
  • Build directory • where the build actually happens • where you put your source code
  • Build directory - build_directory - plugins - plugin_to_build_a - plugin_to_build_b - ... - features
  • Target platform • target platform is a set of pre-built plug-ins and features • the “dependencies” • your plug-ins/features build and run against the target platform (both compile time and run time) • demo
  • Target platform - target_platform - plugins - org.eclipse.core.runtime - org.eclipse.ui - ... - features
  • Build configuration file • build.propeties • template in #{eclipseInstall}/plugins/ org.eclipse.pde.build_#{version}/templates/ headless-build/build.properties • demo
  • Build configuration file - build_config - build.properties
  • Running PDE build > java -jar #{eclipseInstall}/plugins/org.eclipse.equinox.launcher_#{version}.jar -application org.eclipse.ant.core.antRunner -buildfile #{eclipseInstall}/plugins/org.eclipse.pde.build_#{version}/scripts/build.xml -DbuildDirectory=#{path_to_the_build_directory} -DbaseLocation=#{path_to_the_target_platform_directory} -Dbuilder=#{path_to_the_build_configuration_directory} • -application => the org.eclipse.core.runtime.applications extension point, application entry point • -buildfile => productBuild.xml to control pre-build and post-build phases • -Dbuilder => optional if it exists in current folder
  • Demo: FITpro https://fitpro.svn.sourceforge.net/svnroot/ fitpro/Eclipse/trunk/ - build_directory - target_platform - build_config - plugins - plugins - build.properties - plugin_to_build_a - org.eclipse.core.runtime - plugin_to_build_b - org.eclipse.ui - ... - ... - features - features - feature_to_build - org.eclipse.equinox.launcher - ... - ...
  • Summary • What have we done? • set up directory structure (plugins/features) • plugins/features to build • target platform • build.properties • Equinox’s convention of managing components
  • Further readings: • http://owenou.com/blog/2010/09/19/how- to-set-up-and-run-pde-build/ • http://help.eclipse.org/helios/index.jsp? topic=/org.eclipse.pde.doc.user/tasks/ pde_p2_integration.htm • PDE build with Rake: https:// fitpro.svn.sourceforge.net/svnroot/fitpro/ Eclipse/trunk/