log.error(e.getMessage(), e);
} finally {
project.getSettings().setString(ProjectSettings.SHADOW_PASSWORD, passwordForEncryption);
}
MockAsWar mockAsWar = new MockAsWar(project.getPath(),
dialog.getBooleanValue(MockAsWarDialog.GLOBAL_SETTINGS) ? settingFile.getValue() : "",
dialog.getFormField(MockAsWarDialog.WAR_DIRECTORY).getValue(),
dialog.getFormField(MockAsWarDialog.WAR_FILE).getValue(),
dialog.getBooleanValue(MockAsWarDialog.EXT_LIBS),
dialog.getBooleanValue(MockAsWarDialog.ACTIONS), dialog.getBooleanValue(MockAsWarDialog.LISTENERS),
dialog.getValue(MockAsWarDialog.MOCKSERVICE_ENDPOINT),
dialog.getBooleanValue(MockAsWarDialog.ENABLE_WEBUI),
project);
mockAsWar.createMockAsWarArchive();
if (project.getRestMockServiceCount() > 0) {
Analytics.trackAction(SoapUIActions.DEPLOY_REST_MOCK_AS_WAR.getActionName());
}