for (DeploymentModule deploymentModule : this.config.getAllModules()) { debug("closing enunciate module %s.", deploymentModule.getName()); deploymentModule.close();
/** * Logic for handling the closing of the Enunciate mechanism. Closes the modules and exports * the artifacts. * * @param deploymentModules The deployment modules to close. */ protected void doClose(List<DeploymentModule> deploymentModules) throws EnunciateException, IOException { info("\n\nClosing Enunciate mechanism."); for (DeploymentModule deploymentModule : deploymentModules) { debug("Closing module %s.", deploymentModule.getName()); deploymentModule.close(); } HashSet<String> exportedArtifacts = new HashSet<String>(); for (Artifact artifact : artifacts) { String artifactId = artifact.getId(); if (this.exports.containsKey(artifactId)) { File dest = this.exports.get(artifactId); info("\n\nExporting artifact %s to %s.", artifactId, dest); artifact.exportTo(dest, this); exportedArtifacts.add(artifactId); } } for (String export : this.exports.keySet()) { if (!exportedArtifacts.remove(export)) { warn("WARNING: Unknown artifact '%s'. Artifact will not be exported.", export); } } }