public void setProject(final Project project) { this.project = project; if (project != null) { project.addBuildListener(this); } }