Skip to content
Snippets Groups Projects
Commit 8f45e5c7 authored by felmer's avatar felmer
Browse files

SP-182, Bis-109: create core_plugins.properties if it doesn't exist.

SVN: 26666
parent 3ca077f0
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,7 @@ import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
import java.util.Map.Entry;
import java.util.Properties;
......@@ -173,7 +174,9 @@ class Utils
static void updateOrAppendProperty(File configFile, String propertyKey, String propertyValue)
{
List<String> list = FileUtilities.loadToStringList(configFile);
List<String> list =
configFile.exists() ? FileUtilities.loadToStringList(configFile)
: new ArrayList<String>();
boolean defined = false;
boolean unchanged = false;
String propertiesEntry = propertyKey + " = " + propertyValue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment