code: protected String extractProjectName(final BuildEvent event) {
          final Project project = event.getProject();
          return (project != null) ? project.getName() : null;
      }
docs: Get the project name or null
  
  @param event the event
  @return the project that raised this event
  @since Ant1.7.1