mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
[fix] fix container template generator's bug
This commit is contained in:
parent
062e8c6c75
commit
cfb555b893
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user