Skip to content

Commit

Permalink
Version: 3.2 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
gh0stkey committed May 24, 2024
1 parent 8a47f61 commit 99ed2cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/hae/utils/project/ProjectProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public boolean createHaeFile(String haeFilePath, String host, Map<String, List<S
yaml.dump(httpMap, new OutputStreamWriter(httpYamlStream, StandardCharsets.UTF_8));

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.closeEntry();

Expand All @@ -55,7 +55,7 @@ public HaeFileContent readHaeFile(String haeFilePath) {
ZipEntry entry;
while ((entry = zipIn.getNextEntry()) != null) {
switch (entry.getName()) {
case "info.txt":
case "info":
haeFileContent.setHost(new String(zipIn.readAllBytes(), StandardCharsets.UTF_8));
break;
case "data.yml":
Expand Down

0 comments on commit 99ed2cb

Please sign in to comment.