deployer.setAntBinFolder(Paths.get("/usr/share/ant/bin"));
deployer.deploy();
} else if ("openesb_v".equals(request.getEngineName())) {
OpenEsbCLI cli = new OpenEsbCLI(Paths.get("/opt/openesb/glassfish"));
OpenEsbDeployer deployer = new OpenEsbDeployer();
deployer.setTmpFolder(Paths.get("/opt/betsy"));
deployer.setProcessName(request.getProcessName());
deployer.setPackageFilePath(pathToPackageFile);
deployer.setCli(cli);
deployer.deploy();
} else {
throw new CommunicationException("invalid engine given");
}
log.info("Deployment successful -> sending response");