generator.setProject(project);
generator.execute();
} catch ( final SCRDescriptorException sde ) {
if ( sde.getSourceLocation() != null ) {
final Location loc = new Location( sde.getSourceLocation(), -1, 0 );
throw new BuildException( sde.getMessage(), sde.getCause(), loc );
}
throw new BuildException( sde.getMessage(), sde.getCause() );
} catch ( SCRDescriptorFailureException sdfe ) {
throw new BuildException( sdfe.getMessage(), sdfe.getCause() );