From 52e0c61eff249e276ac9897027000596fbae8c9f Mon Sep 17 00:00:00 2001 From: cjayswal Date: Sun, 24 Nov 2024 22:11:33 -0500 Subject: [PATCH] Adding Multi-property-editor support in repo-editor - using file instead of path to work with java 8. --- .../qaf/automation/tools/MultiPropertiesEditorHelper.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/qaf-tools/src/main/java/com/qmetry/qaf/automation/tools/MultiPropertiesEditorHelper.java b/qaf-tools/src/main/java/com/qmetry/qaf/automation/tools/MultiPropertiesEditorHelper.java index bfbfe342..bc878dc5 100644 --- a/qaf-tools/src/main/java/com/qmetry/qaf/automation/tools/MultiPropertiesEditorHelper.java +++ b/qaf-tools/src/main/java/com/qmetry/qaf/automation/tools/MultiPropertiesEditorHelper.java @@ -7,7 +7,6 @@ import java.io.File; import java.io.IOException; import java.nio.charset.StandardCharsets; -import java.nio.file.Path; import java.util.Collection; import java.util.HashMap; import java.util.LinkedHashMap; @@ -67,9 +66,9 @@ public static Collection> getContent(String filePath) { } public static void saveContent(Collection> data, String path) { - Path filePath = Path.of(path); - String name = filePath.getFileName().toString(); - String parent = filePath.getParent().toString(); + File file = new File(path); + String name = file.getName(); + String parent = file.getParent(); saveContent(data, name, parent); }