summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/Launcher.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/gitblit/Launcher.java')
-rw-r--r--src/com/gitblit/Launcher.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/gitblit/Launcher.java b/src/com/gitblit/Launcher.java
index a55056d5..3173dc33 100644
--- a/src/com/gitblit/Launcher.java
+++ b/src/com/gitblit/Launcher.java
@@ -101,6 +101,10 @@ public class Launcher {
* @throws IOException
*/
public static void addJarFile(File f) throws IOException {
+ if (f.getName().indexOf("-sources") > -1 || f.getName().indexOf("-javadoc") > -1) {
+ // don't add source or javadoc jars to runtime classpath
+ return;
+ }
URL u = f.toURI().toURL();
if (debug)
System.out.println("load=" + u.toExternalForm());