Commit 0b551434 authored by DominikE's avatar DominikE

Remove moduliPath tag

parent 324e5ce9
......@@ -111,13 +111,6 @@ public class Moduli
config = new XMLConfiguration(xmlFile);
// --- set moduli-folder ---
String implsPath = config.getString("moduliPath");
if (!implsPath.isEmpty())
{
implsPath += ".";
}
// --- set globalConfiguration ---
globalConfiguration = config.configurationAt("globalConfiguration");
......@@ -125,13 +118,13 @@ public class Moduli
for (int i = 0; i <= config.getMaxIndex("module"); i++)
{
Class<? extends AModule> id = (Class<? extends AModule>) Class
.forName(implsPath + config.getString(moduleMessage(i, "[@id]")));
.forName(config.getString(moduleMessage(i, "[@id]")));
Class<? extends AModule> clazz;
final String implementationKey = moduleMessage(i, ".implementation");
if (config.containsKey(implementationKey))
{
clazz = (Class<? extends AModule>) Class.forName(implsPath + config.getString(implementationKey));
clazz = (Class<? extends AModule>) Class.forName(config.getString(implementationKey));
} else
{
clazz = id;
......
<?xml version="1.0" encoding="UTF-8" ?>
<moduleTest>
<moduliPath></moduliPath>
<globalConfiguration>
<environment>MODULI</environment>
</globalConfiguration>
......
<?xml version="1.0" encoding="UTF-8" ?>
<moduleTest>
<moduliPath></moduliPath>
<globalConfiguration>
<environment>MODULI</environment>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment