Issue #788 Already enabled info

This commit is contained in:
Greg Wilkins 2016-09-16 12:25:24 +10:00
parent 73edfefa47
commit 70705a5ac1
1 changed files with 8 additions and 0 deletions

View File

@ -118,7 +118,15 @@ public class BaseBuilder
if (!startArgs.getStartModules().isEmpty())
{
for (String name:startArgs.getStartModules())
{
newly_added.addAll(modules.enable(name,"--add-to-start"));
if (!newly_added.contains(name))
{
Set<String> sources = modules.get(name).getEnableSources();
sources.remove("--add-to-start");
StartLog.info("%s already enabled by %s",name,sources);
}
}
}
if (StartLog.isDebugEnabled())