mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 23:15:43 +01:00
added api for project stages
This commit is contained in:
@@ -102,6 +102,12 @@ public class BootstrapListener implements ServletContextListener
|
||||
@Override
|
||||
public void contextInitialized(ServletContextEvent sce)
|
||||
{
|
||||
if (logger.isInfoEnabled())
|
||||
{
|
||||
logger.info("start scm-manager in stage: {}",
|
||||
SCMContext.getContext().getStage());
|
||||
}
|
||||
|
||||
ClassLoader classLoader = null;
|
||||
File pluginDirectory = new File(SCMContext.getContext().getBaseDirectory(),
|
||||
PLUGIN_DIRECTORY);
|
||||
@@ -130,7 +136,11 @@ public class BootstrapListener implements ServletContextListener
|
||||
|
||||
if (classLoader != null)
|
||||
{
|
||||
logger.info("try to use ScmBootstrapClassLoader");
|
||||
if (logger.isInfoEnabled())
|
||||
{
|
||||
logger.info("try to use ScmBootstrapClassLoader");
|
||||
}
|
||||
|
||||
scmContextListener = BootstrapUtil.loadClass(classLoader,
|
||||
ServletContextListener.class, LISTENER);
|
||||
Thread.currentThread().setContextClassLoader(classLoader);
|
||||
@@ -139,7 +149,11 @@ public class BootstrapListener implements ServletContextListener
|
||||
|
||||
if (scmContextListener == null)
|
||||
{
|
||||
logger.warn("fallback to default classloader");
|
||||
if (logger.isWarnEnabled())
|
||||
{
|
||||
logger.warn("fallback to default classloader");
|
||||
}
|
||||
|
||||
scmContextListener =
|
||||
BootstrapUtil.loadClass(ServletContextListener.class, LISTENER);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user