Version: 3.2 Update
This commit is contained in:
@@ -28,7 +28,7 @@ public class ProjectProcessor {
|
|||||||
yaml.dump(httpMap, new OutputStreamWriter(httpYamlStream, StandardCharsets.UTF_8));
|
yaml.dump(httpMap, new OutputStreamWriter(httpYamlStream, StandardCharsets.UTF_8));
|
||||||
|
|
||||||
try (ZipOutputStream zipOut = new ZipOutputStream(new FileOutputStream(haeFilePath))) {
|
try (ZipOutputStream zipOut = new ZipOutputStream(new FileOutputStream(haeFilePath))) {
|
||||||
zipOut.putNextEntry(new ZipEntry("info.txt"));
|
zipOut.putNextEntry(new ZipEntry("info"));
|
||||||
zipOut.write(host.getBytes(StandardCharsets.UTF_8));
|
zipOut.write(host.getBytes(StandardCharsets.UTF_8));
|
||||||
zipOut.closeEntry();
|
zipOut.closeEntry();
|
||||||
|
|
||||||
@@ -55,7 +55,7 @@ public class ProjectProcessor {
|
|||||||
ZipEntry entry;
|
ZipEntry entry;
|
||||||
while ((entry = zipIn.getNextEntry()) != null) {
|
while ((entry = zipIn.getNextEntry()) != null) {
|
||||||
switch (entry.getName()) {
|
switch (entry.getName()) {
|
||||||
case "info.txt":
|
case "info":
|
||||||
haeFileContent.setHost(new String(zipIn.readAllBytes(), StandardCharsets.UTF_8));
|
haeFileContent.setHost(new String(zipIn.readAllBytes(), StandardCharsets.UTF_8));
|
||||||
break;
|
break;
|
||||||
case "data.yml":
|
case "data.yml":
|
||||||
|
|||||||
Reference in New Issue
Block a user