From fa5a664679caf13be3726d7d3c829d3a97864afa Mon Sep 17 00:00:00 2001 From: James Moger Date: Fri, 21 Sep 2012 22:52:07 -0400 Subject: [PATCH] Move -source jars into ext/src --- .classpath | 54 ++++++++++++++++---------------- src/com/gitblit/build/Build.java | 10 ++++++ 2 files changed, 37 insertions(+), 27 deletions(-) diff --git a/.classpath b/.classpath index 20d910aa..e6a16a83 100644 --- a/.classpath +++ b/.classpath @@ -4,33 +4,33 @@ - - - - - - - - - + + + + + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + diff --git a/src/com/gitblit/build/Build.java b/src/com/gitblit/build/Build.java index 78fdb02e..2bb4336f 100644 --- a/src/com/gitblit/build/Build.java +++ b/src/com/gitblit/build/Build.java @@ -360,6 +360,16 @@ public class Build { } for (String jar : jars) { File targetFile = mo.getLocalFile("ext", jar); + if ("-sources".equals(jar)) { + File relocated = new File("ext/src", targetFile.getName()); + if (targetFile.exists()) { + // move -sources jar to ext/src folder + targetFile.renameTo(relocated); + } + // -sources jars are located in ext/src + targetFile = relocated; + } + if (targetFile.exists()) { downloads.add(targetFile); continue; -- 2.39.5