Calling Eclipse export to xml programmatically

I want to programmatically program the export to an eclipse xml function to generate build.xml files so that it can be in continuous integration.

Is there an easy way to do this without opening Eclipse?

Thanks, Aakash

0


a source to share


1 answer


org.eclipse.pde.build runs the ant " eclipse.buildScript

" task , which generates the build.xml scripts that are used in the export and headless pde builds.

There are many properties that serve as input for this task. The easiest way to call it directly from the command line would be something like this:

eclipse -application org.eclipse.ant.core.antRunner -f plugins/org.eclipse.pde.build_3.5.0.v20090521-1730/scripts/genericTargets.xml generateScript

      



You also need to pass a bunch of -Dproperty = value arguments to set the input properties. It might be easier to write a wrapper file build.xml script that you would use with antRunner, in which case the genericTargets.xml script will be located in ${eclipse.pdebuild.scripts}/genericTargets.xml

.

There is some documentation on the task here . This is used as part of the larger auto build support provided by pde.build, the docs for this run are here .

+1


a source







All Articles