Fixed config path

This commit is contained in:
Daniel Poustka 2020-12-26 11:09:59 +01:00
parent 01e43e20a7
commit cfbe22d6c1

View File

@ -37,7 +37,7 @@ public class FoodChain
try
{
// parse channel configuration
ConfigurationParser.parseDocument("../conf/channels.xml");
ConfigurationParser.parseDocument("conf/channels.xml");
ParserResult parserResult = ConfigurationParser.getElements("channel");
List<ParserResultElement> elements = parserResult.getElements();
for (ParserResultElement el : elements)
@ -54,6 +54,7 @@ public class FoodChain
catch (Exception e)
{
System.err.println(e.getMessage());
e.printStackTrace();
}
}
public static void parseNodes()
@ -61,7 +62,7 @@ public class FoodChain
try
{
// parse channel configuration
ConfigurationParser.parseDocument("../conf/nodes.xml");
ConfigurationParser.parseDocument("conf/nodes.xml");
ParserResult parserResult = ConfigurationParser.getElements("node");
List<ParserResultElement> elements = parserResult.getElements();
for (ParserResultElement el : elements)