listener.setUsername( username );
String workingDirectory = getContinuum().getWorkingDirectory( projectId ).getPath();
ContinuumReleaseManager releaseManager = getContinuum().getReleaseManager();
String executable = getContinuum().getInstallationService().getExecutorConfigurator(
InstallationService.MAVEN2_TYPE ).getExecutable();
if ( environments != null )
{
String m2Home = environments.get( getContinuum().getInstallationService().getEnvVar(
InstallationService.MAVEN2_TYPE ) );
if ( StringUtils.isNotEmpty( m2Home ) )
{
executable = m2Home + File.separator + "bin" + File.separator + executable;
}
}
releaseId = releaseManager.prepare( project, getReleaseProperties(), getRelVersionMap(), getDevVersionMap(),
listener, workingDirectory, environments, executable );
}
AuditLog event = new AuditLog( "Release id=" + releaseId, AuditLogConstants.PREPARE_RELEASE );
event.setCategory( AuditLogConstants.PROJECT );