Skip to content

Commit 83b4b34

Browse files
committed
fix storeProperty method to accept prop name
1 parent d6119ad commit 83b4b34

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/gr/sqlbrowserfx/utils/PropertiesLoader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,13 @@ public static Properties getPropertiesFromFile(String fileNamePart) {
128128
return null;
129129
}
130130

131-
public static void storeProperty(String absolutePath, String value) {
131+
public static void storeProperty(String absolutePath, String prop, String value) {
132132
var file = new File(absolutePath);
133133
try (var inputStream = new FileInputStream(file)) {
134134
var props = new Properties();
135135
props.load(inputStream);
136136
// update or add property
137-
props.setProperty("amarildo.root.path", value);
137+
props.setProperty(prop, value);
138138

139139
// save back
140140
try (var out = new FileOutputStream(file)) {

0 commit comments

Comments
 (0)