ProjectHelper.configureProject(project, new File(filename));
ProjectHelper.getProjectHelper().parse(project, new File(filename));
    protected void configureProject(String filename) throws BuildException {         logBuffer = new StringBuffer();        fullLogBuffer = new StringBuffer();        project = new Project();        project.init();        project.setUserProperty( "ant.file" , new File(filename).getAbsolutePath() );        project.addBuildListener(new AntTestListener());        ProjectHelper.configureProject(project, new File(filename));    }