Commit 2f972c37 authored by DominikE's avatar DominikE

Remove obsolete dependency check

parent 63fd7bfa
Pipeline #2522 passed with stage
in 39 seconds
......@@ -26,7 +26,6 @@ import org.jgrapht.experimental.dag.DirectedAcyclicGraph;
import org.jgrapht.graph.DefaultEdge;
import org.jgrapht.traverse.TopologicalOrderIterator;
import edu.tigers.moduli.exceptions.DependencyException;
import edu.tigers.moduli.exceptions.InitModuleException;
import edu.tigers.moduli.exceptions.LoadModulesException;
import edu.tigers.moduli.exceptions.ModuleNotFoundException;
......@@ -87,9 +86,8 @@ public class Moduli
*
* @param xmlFile (module-)configuration-file
* @throws LoadModulesException an error occurs... Can't continue.
* @throws DependencyException when dependencies are not met
*/
public void loadModules(final String xmlFile) throws LoadModulesException, DependencyException
public void loadModules(final String xmlFile) throws LoadModulesException
{
modules.clear();
......@@ -97,8 +95,6 @@ public class Moduli
loadModulesFromFile(xmlFile);
checkDependencies();
modulesState.set(ModulesState.RESOLVED);
}
......@@ -221,7 +217,7 @@ public class Moduli
// --- get modules from configuration-file ---
loadModules(filename);
log.debug("Loaded config: " + filename);
} catch (final LoadModulesException | DependencyException e)
} catch (final LoadModulesException e)
{
log.error(e.getMessage() + " (moduleConfigFile: '" + filename
+ "') ", e);
......@@ -405,26 +401,6 @@ public class Moduli
}
/**
* Checks, if dependencies can be resolved.
*
* @throws DependencyException ... if at least one modules can't be resolved
*/
private void checkDependencies() throws DependencyException
{
for (AModule m : modules.values())
{
for (Class<? extends AModule> dependency : m.getDependencies())
{
if (!modules.containsKey(dependency))
{
throw new DependencyException("Dependency '" + dependency + "' isn't met at module '" + m.getId() + "'");
}
}
}
}
/**
* Creates an object from a clazz.
*
......
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