private Project buildProject(File scriptFile, File baseDir, Map<String, String> antProperties) throws ScriptProcessingException
{
if (!scriptFile.exists())
{
throw new ScriptProcessingException("Ant script file " + scriptFile + " does not exist");
}
Project antProject = new Project();
// add our build listener to capture ant logging and other stuff
antProject.addBuildListener(new AntBuildListener());
// Set the basedir for the ant project