[fix] fix container template generator's bug

This commit is contained in:
tjq 2020-05-18 19:47:44 +08:00
parent 062e8c6c75
commit cfb555b893

View File

@ -37,8 +37,8 @@ public class ContainerTemplateGenerator {
if (resource == null) { if (resource == null) {
throw new RuntimeException("generate container template failed, can't find zip file in classpath."); throw new RuntimeException("generate container template failed, can't find zip file in classpath.");
} }
String originTemplate = resource.getPath();
ZipFile zipFile = new ZipFile(originTemplate); ZipFile zipFile = new ZipFile(resource.getFile());
String tmpPath = OmsFileUtils.genTemporaryPath(); String tmpPath = OmsFileUtils.genTemporaryPath();
zipFile.extractAll(tmpPath); zipFile.extractAll(tmpPath);