From 20165d234037cb62640e4d9a3fe285260a6a2444 Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Wed, 20 Jul 2011 16:01:58 -0400
Subject: [PATCH] Change password feature (issue 1)

---
 src/com/gitblit/build/Build.java |   34 +++++++++++++++++++++++++---------
 1 files changed, 25 insertions(+), 9 deletions(-)

diff --git a/src/com/gitblit/build/Build.java b/src/com/gitblit/build/Build.java
index 641b7aa..35d549f 100644
--- a/src/com/gitblit/build/Build.java
+++ b/src/com/gitblit/build/Build.java
@@ -35,6 +35,18 @@
 import com.gitblit.Constants;
 import com.gitblit.utils.StringUtils;
 
+/**
+ * The Build class downloads runtime and compile-time jar files from the Apache
+ * or Eclipse Maven repositories.
+ * 
+ * It also generates the Keys class from the gitblit.properties file.
+ * 
+ * Its important that this class have minimal compile dependencies since its
+ * called very early in the build script.
+ * 
+ * @author James Moger
+ * 
+ */
 public class Build {
 
 	public static enum BuildType {
@@ -95,6 +107,10 @@
 		downloadFromApache(MavenObject.COMMONSNET, BuildType.RUNTIME);
 	}
 
+	/**
+	 * Builds the Keys class based on the gitblit.properties file and inserts
+	 * the class source into the project source folder.
+	 */
 	public static void buildSettingKeys() {
 		// Load all keys
 		Properties properties = new Properties();
@@ -297,7 +313,7 @@
 		String anim = "==========";
 		int width = Math.round(anim.length() * progress);
 		System.out.print("\r[");
-		System.out.print(anim.substring(0, width));
+		System.out.print(anim.substring(0, Math.min(width, anim.length())));
 		for (int i = 0; i < anim.length() - width; i++) {
 			System.out.print(' ');
 		}
@@ -313,10 +329,10 @@
 				"c7adc475ca40c288c93054e0f4fe58f3a98c0cb5");
 
 		public static final MavenObject JETTY = new MavenObject("Jetty",
-				"org/eclipse/jetty/aggregate", "jetty-webapp", "7.4.2.v20110526", 1000000, 680000,
-				2720000, "56331143afa22d24d9faba96e86e6371b0686c7c",
-				"9f38230fd589e29c8be0fc3c80fb51c5093c2e1e",
-				"0d48212889c25252c5c14bef62703e28215d80cc");
+				"org/eclipse/jetty/aggregate", "jetty-webapp", "7.4.4.v20110707", 1010000, 687000,
+				2760000, "bbf086d31f24aba5a871389e478b88a83ff728cd",
+				"2904d8da6769d801f386dba285e17a87bc7bb69f",
+				"35d4b4db0a016eabe8c95b187074f0a5761416f2");
 
 		public static final MavenObject SERVLET = new MavenObject("Servlet 2.5", "javax/servlet",
 				"servlet-api", "2.5", 105000, 158000, 0,
@@ -368,10 +384,10 @@
 				237000, 0, 0, "c94f54227b08100974c36170dcb53329435fe5ad", "", "");
 
 		public static final MavenObject MARKDOWNPAPERS = new MavenObject("MarkdownPapers",
-				"org/tautua/markdownpapers", "markdownpapers-core", "1.0.0", 87000, 58000, 278000,
-				"feda63bd149f3315da210e397d45d02277038ad5",
-				"a9a6c4d163af81e265a15138fcaeafa9829c6054",
-				"f932656266a7f9593488d3f89e815d0af44d0853");
+				"org/tautua/markdownpapers", "markdownpapers-core", "1.1.0", 87000, 58000, 278000,
+				"b879b4720fa642d3c490ab559af132daaa16dbb4",
+				"d98c53939815be2777d5a56dcdc3bbc9ddb468fa",
+				"4c09d2d3073e85b973572292af00bd69681df76b");
 
 		public static final MavenObject BOUNCYCASTLE = new MavenObject("BouncyCastle",
 				"org/bouncycastle", "bcprov-jdk16", "1.46", 1900000, 1400000, 4670000,

--
Gitblit v1.9.1