private String deployInternal(String name, InputStream input) throws DeploymentException { checkState(); final DeploymentResult result; try { result = deploymentManager.deploy(Deployment.of(input, name)); } catch (Exception ex) { throw createException("Cannot deploy: " + name, ex); } if (result.successful()) { return name; } throw new DeploymentException(String.format("Cannot deploy %s: %s", name, result.getFailureMessage())); }
private String deployInternal(String name, InputStream input) throws DeploymentException { checkState(); final DeploymentResult result; try { result = deploymentManager.deploy(Deployment.of(input, name)); } catch (Exception ex) { throw createException("Cannot deploy: " + name, ex); } if (result.successful()) { return name; } throw new DeploymentException(String.format("Cannot deploy %s: %s", name, result.getFailureMessage())); }