We first export the ant build file, by Right click on project -> Export ->
Ant build file. Then the ant "build" target is called from our continuous
integration script.
If something leads to a change in the .classpath file, like adding an
external jar, the build.xml becomes outdated and this leads to an error in
continuous integration.
Aakash Murari wrote:
> Hi
>
> I want to build Eclipse projects in continous integration. For that, I
> need to generated the build.xml programatically everytime.
By "everytime" do you mean every time a file in the project is changed
(or a subset of files)? If so, then I would use an
IResourceChangeListener and in response to changes call whatever API is
necessary to do the build.xml export.
This should help get you started: http://www.eclipse.org/articles/Article-Resource-deltas/reso urce-deltas.html
To discover the API you need to call for the export, open the buildfile
export wizard and then use the Plug-in Spy (Shift+Alt+F1) to learn what
class implements that wizard.