use of com.iggroup.oss.restdoclet.plugin.io.ConfigCopier in project RESTdoclet by IG-Group.
the class RestDocumentationMojo method deploy.
/**
* Packages and deploys the web-application.
*
* @throws IOException if an input-output exception occurs.
*/
private void deploy() throws IOException {
LOG.info("Generating jar-archive");
final DirectoryBuilder dirs = new DirectoryBuilder(baseDirectory, outputDirectory);
final ConfigCopier cc = new ConfigCopier(dirs);
cc.copy();
LOG.debug("Creating properties: " + artifactId + ", " + version + ", " + finalName + ", " + classifier + ", " + scmUrl);
cc.createProperties(artifactId, version, finalName, classifier, scmUrl);
LOG.debug("Building jar: " + finalName + '-' + classifier);
File jar = new JarBuilder(dirs, finalName + '-' + classifier).build();
LOG.info("Deploying " + jar.getName());
if (deployUrl != null && deployUrl.toLowerCase().startsWith("http")) {
FileUploader.upload(deployUrl, deployDir, jar);
}
}
Aggregations