AspectJ Aware Headless Builds
AJDT-PDE headless build support is now available. So, it is now possible to build your bundles and plugins with PDE using the AspectJ compiler and PDE. The process is similar to standard PDE builds, with some small changes. A good description of standard headless PDE builds is available in Build and Test Automation for plug-ins and features.
If you want to use AJDT-PDE support, you must do the following:
- From the appropriate AJDT update site (e.g., http://download.eclipse.org/tools/ajdt/35/update/), install the AJDT Plugin Development Tools in the Optional category.
- In your headless build script, make sure that the Eclipse antrunner points to the <Eclipse_Install>/plugins/org.eclipse.ajdt.pde.build_<qualifier>/scripts/build.xml ant script.
- Ensure that the following property is available to ant: ajdt.pdebuild.home = <Eclipse_Install>/plugins/org.eclipse.ajdt.pde.build_<qualifier> (this could be in your build.properties, passed in as a VM argument, or set as a system variable).
- Run your build script as you would any other headless PDE script.
For background information, see Bug 252641, which is the original bug that describes this feature.
Several things to note here:
- This plugin is meant for headless builds only.
- Many of the ant tasks available in standard eclipse headless builds are available here, but the names are prefixed with ajdt.. Eg- the eclipse.build task becomes ajdt.eclipse.build.
- This plugin includes the sources, so you can browse and see how the tasks are implemented.
- As with the org.eclipse.pde.build plugin, template scripts are included. They are largely the same, except ajdt. is used to prefix calls where appropriate.