Search in sources :

Example 1 with ConfigCopier

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);
    }
}
Also used : ConfigCopier(com.iggroup.oss.restdoclet.plugin.io.ConfigCopier) JarBuilder(com.iggroup.oss.restdoclet.plugin.io.JarBuilder) DirectoryBuilder(com.iggroup.oss.restdoclet.plugin.io.DirectoryBuilder) File(java.io.File)

Aggregations

ConfigCopier (com.iggroup.oss.restdoclet.plugin.io.ConfigCopier)1 DirectoryBuilder (com.iggroup.oss.restdoclet.plugin.io.DirectoryBuilder)1 JarBuilder (com.iggroup.oss.restdoclet.plugin.io.JarBuilder)1 File (java.io.File)1