1. 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/
2. 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)
3. Pre-requirement of
PDE build
• three folders:
• build directory
• target platform
• build configuration file
6. 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
10. 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
12. 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
13. 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/