Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static String getActualState(String service, JsonArray servicesstatus) {

public static void changeProperty(String oldValue, String newValue) {
try {
String fileName = "META-INF/CustomConfigSource.json";
String fileName = System.getProperty("user.dir").split("src")[0] + "/target/classes/META-INF/CustomConfigSource.json";
BufferedReader reader = new BufferedReader(new FileReader(new File(fileName)));
String line = "";
String oldContent = "", newContent = "";
Expand All @@ -76,7 +76,7 @@ public static void changeProperty(String oldValue, String newValue) {
FileWriter writer = new FileWriter(fileName);
writer.write(newContent);
writer.close();
Thread.sleep(1500);
Thread.sleep(3500);
} catch (Exception e) {
e.printStackTrace();
}
Expand Down