Revert "Resolves #788" (#933)

This commit is contained in:
Greg Wilkins 2016-09-16 11:27:57 +10:00 committed by GitHub
parent 878f0e90a0
commit 73edfefa47
4 changed files with 10 additions and 21 deletions

View File

@ -262,13 +262,9 @@ public class Modules implements Iterable<Module>
}
// Enable the module
if (module.isEnabled() && !transitive)
if (module.enable(enabledFrom,transitive))
{
StartLog.info("Module %s has already been enabled.", module.getName());
}
else if (module.enable(enabledFrom,transitive))
{
StartLog.debug("Enabled %s",module.getName());
StartLog.debug("enabled %s",module.getName());
newlyEnabled.add(module.getName());
// Expand module properties
@ -285,7 +281,8 @@ public class Modules implements Iterable<Module>
}
else if (module.isTransitive() && module.hasIniTemplate())
newlyEnabled.add(module.getName());
// Process module dependencies (always processed as may be dynamic)
for(String dependsOn:module.getDepends())
{

View File

@ -88,6 +88,12 @@ public class StartIniBuilder implements BaseBuilder.Config
@Override
public boolean addModule(Module module) throws IOException
{
if (modulesPresent.contains(module.getName()))
{
StartLog.info("%-15s already initialised in %s",module.getName(),baseHome.toShortForm(startIni));
// skip, already present
return false;
}
if (module.isDynamic())
{

View File

@ -1,13 +0,0 @@
## The XMLs we expect (order is important)
XML|${jetty.home}/etc/base.xml
XML|${jetty.home}/etc/main.xml
# The LIBs we expect (order is irrelevant)
LIB|${jetty.home}/lib/base.jar
LIB|${jetty.home}/lib/main.jar
LIB|${jetty.home}/lib/other.jar
# The Properties we expect (order is irrelevant)
PROP|main.prop=value0
OUTPUT|INFO : Module base has already been enabled.