From 27ae9095639bb228a1b7ff86a3ebe4264abf05be Mon Sep 17 00:00:00 2001
From: mschaefers <mschaefers@scoop-gmbh.de>
Date: Thu, 29 Nov 2012 12:33:09 -0500
Subject: [PATCH] feature: when using LdapUserService one can configure Gitblit to fetch all users from ldap that can possibly login. This allows to see newly generated LDAP users instantly in Gitblit. By now an LDAP user had to log in once to appear in GitBlit.

---
 src/com/gitblit/models/ServerStatus.java |   27 ++++++++++++++++++---------
 1 files changed, 18 insertions(+), 9 deletions(-)

diff --git a/src/com/gitblit/models/ServerStatus.java b/src/com/gitblit/models/ServerStatus.java
index 1c40b5f..f1650c8 100644
--- a/src/com/gitblit/models/ServerStatus.java
+++ b/src/com/gitblit/models/ServerStatus.java
@@ -20,6 +20,8 @@
 import java.util.Map;
 import java.util.TreeMap;
 
+import com.gitblit.Constants;
+
 /**
  * ServerStatus encapsulates runtime status information about the server
  * including some information about the system environment.
@@ -32,28 +34,35 @@
 	private static final long serialVersionUID = 1L;
 
 	public final Date bootDate;
-	
+
+	public final String version;
+
+	public final String releaseDate;
+
 	public final boolean isGO;
-	
+
 	public final Map<String, String> systemProperties;
 
 	public final long heapMaximum;
 
 	public volatile long heapAllocated;
-	
+
 	public volatile long heapFree;
-	
+
 	public String servletContainer;
 
 	public ServerStatus(boolean isGO) {
-		bootDate = new Date();
+		this.bootDate = new Date();
+		this.version = Constants.VERSION;
+		this.releaseDate = Constants.VERSION_DATE;
 		this.isGO = isGO;
-		
-		heapMaximum = Runtime.getRuntime().maxMemory();
-		
-		systemProperties = new TreeMap<String, String>();
+
+		this.heapMaximum = Runtime.getRuntime().maxMemory();
+
+		this.systemProperties = new TreeMap<String, String>();
 		put("file.encoding");
 		put("java.home");
+		put("java.awt.headless");
 		put("java.io.tmpdir");
 		put("java.runtime.name");
 		put("java.runtime.version");

--
Gitblit v1.9.1