From 2b4892d835ccdbbdb175f0b7b0619de87203ad64 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Tue, 30 Dec 2008 02:33:01 +0000 Subject: [PATCH] leaving the view name null is important for clean persistence git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13968 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/model/Hudson.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/hudson/model/Hudson.java b/core/src/main/java/hudson/model/Hudson.java index 71fecaa535..b9be81e4d0 100644 --- a/core/src/main/java/hudson/model/Hudson.java +++ b/core/src/main/java/hudson/model/Hudson.java @@ -331,7 +331,7 @@ public final class Hudson extends View implements ItemGroup, Node, private transient final LogRecorderManager log = new LogRecorderManager(); public Hudson(File root, ServletContext context) throws IOException { - super(Messages.Hudson_ViewName()); + super(null); this.root = root; this.servletContext = context; if(theInstance!=null) @@ -478,6 +478,10 @@ public final class Hudson extends View implements ItemGroup, Node, throw new UnsupportedOperationException(); } + @Override + public String getViewName() { + return Messages.Hudson_ViewName(); + } /** * Gets the SCM descriptor by name. Primarily used for making them web-visible.