From 94dfef9efa0208ebf5bea9fb539bae7344551620 Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Tue, 13 Sep 2011 09:10:07 -0400
Subject: [PATCH] Updated to Wicket 1.4.18.
---
src/com/gitblit/Launcher.java | 20 ++++++++++++++++----
1 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/src/com/gitblit/Launcher.java b/src/com/gitblit/Launcher.java
index 0dcb22b..abd4098 100644
--- a/src/com/gitblit/Launcher.java
+++ b/src/com/gitblit/Launcher.java
@@ -27,10 +27,17 @@
import java.util.Arrays;
import java.util.List;
+import com.gitblit.build.Build;
+
/**
- * Launch helper class that adds all jars found in the local "lib" folder and
- * then calls the application main. Using this technique we do not have to
- * specify a classpath and we can dynamically add jars to the distribution.
+ * Launch helper class that adds all jars found in the local "lib" & "ext"
+ * folders and then calls the application main. Using this technique we do not
+ * have to specify a classpath and we can dynamically add jars to the
+ * distribution.
+ *
+ * This class also downloads all runtime dependencies, if they are not found.
+ *
+ * @author James Moger
*
*/
public class Launcher {
@@ -50,6 +57,7 @@
+ protectionDomain.getCodeSource().getLocation().toExternalForm());
}
+ // download all runtime dependencies
Build.runtime();
// Load the JARs in the lib and ext folder
@@ -70,12 +78,15 @@
if (jars.size() == 0) {
for (String folder : folders) {
File libFolder = new File(folder);
- System.err.println("Failed to find any JARs in " + libFolder.getPath());
+ // this is a test of adding a comment
+ // more really interesting things
+ System.err.println("Failed to find any really cool JARs in " + libFolder.getPath());
}
System.exit(-1);
} else {
for (File jar : jars) {
try {
+ jar.canRead();
addJarFile(jar);
} catch (Throwable t) {
t.printStackTrace();
@@ -105,6 +116,7 @@
}
}
}
+
return jars;
}
--
Gitblit v1.9.1