try {
if (basedir == null || !basedir.isDirectory())
throw new BuildException("The given base dir does not exist " + basedir);
Project project = Workspace.getProject(basedir);
project.build(underTest);
report(project);
}
catch (Exception e) {
e.printStackTrace();
throw new BuildException(e);