use of com.ibeiliao.deployment.transfer.conf.ResinConfTemplate in project Corgi by kevinYin.
the class JavaTransferService method generateResinConf.
private List<String> generateResinConf() {
if (request.getModuleType() == ModuleType.WEB_PROJECT.getValue()) {
ModuleConf moduleConf = new ModuleConf();
moduleConf.setProjectNo(request.getProjectName());
moduleConf.setJvmArg(request.getJvmArgs());
moduleConf.setShortModuleName(shortModuleName);
moduleConf.setModuleFinalName(request.getModuleFinalName());
ResinConfTemplate template = new ResinConfTemplate(request.getResinConf(), moduleConf);
try {
return template.createConfFiles(FileUtils.getTempDirectoryPath());
} catch (IOException e) {
logger.info("生成resin配置文件失败, {}", e);
result.setSuccessType(DeployResult.FAILURE);
return Collections.emptyList();
}
}
return Collections.emptyList();
}
Aggregations