Can I customize the ant build script exported by eclipse? [message #334357] |
Wed, 04 February 2009 11:58  |
Eclipse User |
|
|
|
Hey,
Our plug-in has implemented a builder which is used to build some resource
files (let's call it resource builder). The files created by the resource
builder are used when the java builder builds a project. Now, we are
looking for a way to add the task which is done by our resource builder to
the ant build script exported by eclipse through "Export-->Ant Buildfile"
wizard. By defaul, the generated ant descript file only contains java
build task. Is there any way we can customize it?
Thanks.
|
|
|
|
Re: Can I customize the ant build script exported by eclipse? [message #334385 is a reply to message #334377] |
Fri, 06 February 2009 09:39   |
Eclipse User |
|
|
|
Andrew,
Thanks for you answer. It is good for me to know this mechanism. However,
it is not exactly what I want. This way, it seems users still need to
create the customBuildCallbacks.xml manually, then, when the build.xml is
executed, it can be called, right?
What I am looking for is does eclipse provides any support to
programmatically create an ANT build script file? When a project is
created, the properties of our resource builder are set, when users click
the export ant buildfiles function, I want it can programmatically create
an ANT task for our resource builder in the build.xml file or the
customBuildCallbacks.xml mentioned in your answer.In short words, I am
more interested in programmatically generating an ANT build file.
Thanks.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04075 seconds