Calling ant - No errors but no result

I am trying to call ant to run a build script once my servlet is hit. I have no clue as to why the following code doesn't work:

String baseDir = getServletContext().getRealPath("/WEB-INF/ant/");

File buildFile = new File(baseDir, "build.xml");

//yes i know its deprecated

ProjectHelper.configureProject(project, buildFile);

All of the necessary libs are there (ant.jar and ant-launcher.jar) and I verified that once the servlet is hit the build.xml is found and opened:

java.exe:5740READC:\tomcat\webapps\xxx\WEB-INF\ant\build.xmlSUCCESSOffset: 1 Length: 1

I made the script just mkdir to ensure I had no typos or stupid errors.

Any ideas?

[695 byte] By [jackmalorna] at [2007-10-3 2:48:25]
# 1
hmm, did you callProject.execute ORTarget.execute?
IanSchneidera at 2007-7-14 20:37:13 > top of Java-index,Java Essentials,Java Programming...
# 2
Doh! (slaps head)The following line did it:project.executeTarget( project.getDefaultTarget());Thanks :)
jackmalorna at 2007-7-14 20:37:13 > top of Java-index,Java Essentials,Java Programming...