mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-08 01:26:03 +00:00
[FIXED HUDSON-2770] resurrected the awtProblem as boolean.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13837 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
b898fef4f2
commit
ce015a9c85
4 files changed
+21
-7
No files matched your search
@@ -116,8 +116,8 @@ public final class WebAppMain implements ServletContextListener {
|
||||
}
|
||||
|
||||
// make sure AWT is functioning, or else JFreeChart won't even load.
|
||||
if(ChartUtil.awtProblem!=null) {
|
||||
context.setAttribute(APP,new AWTProblem(ChartUtil.awtProblem));
|
||||
if(ChartUtil.awtProblemCause!=null) {
|
||||
context.setAttribute(APP,new AWTProblem(ChartUtil.awtProblemCause));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -151,7 +151,7 @@ public final class WebAppMain implements ServletContextListener {
|
||||
}
|
||||
}
|
||||
|
||||
Stapler.setExpressionFactory(event, new ExpressionFactory2());
|
||||
installExpressionFactory(event);
|
||||
|
||||
context.setAttribute(APP,new HudsonIsLoading());
|
||||
|
||||
@@ -196,6 +196,10 @@ public final class WebAppMain implements ServletContextListener {
|
||||
}
|
||||
}
|
||||
|
||||
public static void installExpressionFactory(ServletContextEvent event) {
|
||||
Stapler.setExpressionFactory(event, new ExpressionFactory2());
|
||||
}
|
||||
|
||||
protected void computeVersion(ServletContext context) {
|
||||
// set the version
|
||||
Properties props = new Properties();
|
||||
|
||||
Reference in new issue
Block a user