/** * Deploy the current project to a repository * * @throws Exception */ public void deploy() throws Exception { Parameters deploy = new Parameters(getProperty(DEPLOY), this); if (deploy.isEmpty()) { warning("Deploying but %s is not set to any repo", DEPLOY); return; } File[] outputs = getBuildFiles(); for (File output : outputs) { for (Deploy d : getPlugins(Deploy.class)) { logger.debug("Deploying {} to: {}", output.getName(), d); try { if (d.deploy(this, output.getName(), new BufferedInputStream(IO.stream(output)))) logger.debug("deployed {} successfully to {}", output, d); } catch (Exception e) { msgs.Deploying(e); } } } }
/** * Deploy the current project to a repository * * @throws Exception */ public void deploy() throws Exception { Parameters deploy = new Parameters(getProperty(DEPLOY), this); if (deploy.isEmpty()) { warning("Deploying but %s is not set to any repo", DEPLOY); return; } File[] outputs = getBuildFiles(); for (File output : outputs) { for (Deploy d : getPlugins(Deploy.class)) { logger.debug("Deploying {} to: {}", output.getName(), d); try { if (d.deploy(this, output.getName(), new BufferedInputStream(IO.stream(output)))) logger.debug("deployed {} successfully to {}", output, d); } catch (Exception e) { msgs.Deploying(e); } } } }
/** * Deploy the current project to a repository * * @throws Exception */ public void deploy() throws Exception { Parameters deploy = new Parameters(getProperty(DEPLOY)); if (deploy.isEmpty()) { warning("Deploying but %s is not set to any repo", DEPLOY); return; } File[] outputs = getBuildFiles(); for (File output : outputs) { for (Deploy d : getPlugins(Deploy.class)) { trace("Deploying %s to: %s", output.getName(), d); try { if (d.deploy(this, output.getName(), new BufferedInputStream(new FileInputStream(output)))) trace("deployed %s successfully to %s", output, d); } catch (Exception e) { msgs.Deploying(e); } } } }
/** * Deploy the current project to a repository * * @throws Exception */ public void deploy() throws Exception { Parameters deploy = new Parameters(getProperty(DEPLOY)); if (deploy.isEmpty()) { warning("Deploying but %s is not set to any repo", DEPLOY); return; } File[] outputs = getBuildFiles(); for (File output : outputs) { for (Deploy d : getPlugins(Deploy.class)) { trace("Deploying %s to: %s", output.getName(), d); try { if (d.deploy(this, output.getName(), new BufferedInputStream(new FileInputStream(output)))) trace("deployed %s successfully to %s", output, d); } catch (Exception e) { msgs.Deploying(e); } } } }
/** * Deploy the current project to a repository * * @throws Exception */ public void deploy() throws Exception { Parameters deploy = new Parameters(getProperty(DEPLOY)); if (deploy.isEmpty()) { warning("Deploying but %s is not set to any repo", DEPLOY); return; } File[] outputs = getBuildFiles(); for (File output : outputs) { for (Deploy d : getPlugins(Deploy.class)) { trace("Deploying %s to: %s", output.getName(), d); try { if (d.deploy(this, output.getName(), new BufferedInputStream(new FileInputStream(output)))) trace("deployed %s successfully to %s", output, d); } catch (Exception e) { msgs.Deploying(e); } } } }
/** * Deploy the current project to a repository * * @throws Exception */ public void deploy() throws Exception { Map<String, Map<String, String>> deploy = parseHeader(getProperty(DEPLOY)); if (deploy.isEmpty()) { warning("Deploying but %s is not set to any repo", DEPLOY); return; } File[] outputs = getBuildFiles(); for (File output : outputs) { Jar jar = new Jar(output); try { for (Deploy d : getPlugins(Deploy.class)) { trace("Deploying %s to: %s", jar, d); try { if (d.deploy(this, jar)) trace("deployed %s successfully to %s", output, d); } catch (Exception e) { error("Error while deploying %s, %s", this, e); e.printStackTrace(); } } } finally { jar.close(); } } }