Search code examples
eclipseeclipse-cdteclipse-pde

How to add builder (ant script) with Eclipse project template plugin?


In our manually setup (C) project we use Ant script (added to Builders) for processing some files.

I have created an Eclipse C project template plugin for new projects creation. Now I would like to automatically add the Ant script to Builder with this template, but I don't know how.

Does anybody have some advice/example?

Thanks.


Solution

  • AFAIK no one has provided a "process runner" that allows such configuration of other aspects of the project.

    What you can do is add your own subclass of org.eclipse.cdt.core.templateengine.process.ProcessRunner that lets you configure other aspects of the project, such as additional builders. The Eclipse extension point you need is org.eclipse.cdt.core.templateProcessTypes.