you can use ant taskdef tag to invoke other 3rd party tools.
I have used ant taskdef to invoke hibernatetools once in my project
i hope you can get an idea from these articles
http://ant.apache.org/manual/Tasks/taskdef.html
http://ant.apache.org/manual/develop.html
regards.
On Fri, Mar 23, 2012
How would you execute a third-party-task from the command-line?
Specifically, I would like to execute the sonar-ant-task from the
command-line on a project with an existing build.xml file. Unfortunately,
editing the parent build.xml file isn't an option because of the 60+ modules
and thier sub-mod