From 85f639aa3eee0b4e02eba20e6a5197b684941544 Mon Sep 17 00:00:00 2001 From: Luca Milanesio Date: Tue, 14 Aug 2012 09:07:42 +0200 Subject: [PATCH] Allows integration of GitBlit as plug-in in other projects. There are now three new targets on the ANT build: - buildJAR: creates a GitBlit JAR including the GitBlit biz logic - installMaven: install GitBlit JAR as Maven module - uploadMaven: uploads GitBlit JAR to a Maven repository Additional extensions have been made to allow: a) GitBlit to load his resources outside of Wicket domain b) GitBlit to use an injected UserService c) Generic authentication of HTTP Request using 3rd party logic d) Load settings programmatically from an InputStream e) Use cookie authentication OR generic HTTP Request authentication for Wicket pages f) UserModel with branch-level security logic --- .gitignore | 1 + build.xml | 75 +++++++++++++++++++ pom.xml | 7 ++ src/com/gitblit/GitBlit.java | 74 ++++++++++++++---- src/com/gitblit/models/UserModel.java | 7 +- src/com/gitblit/wicket/pages/BasePage.java | 18 ++--- .../wicket/pages/RepositoriesPage.java | 4 +- .../gitblit/wicket/pages/RepositoryPage.java | 16 +++- tmplt.pom.xml | 7 ++ 9 files changed, 181 insertions(+), 28 deletions(-) create mode 100644 pom.xml create mode 100644 tmplt.pom.xml diff --git a/.gitignore b/.gitignore index e93e18e4..173bd34f 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,4 @@ *.directory /.gradle /projects.conf +/pom.xml diff --git a/build.xml b/build.xml index 86b613b5..6dca87d4 100644 --- a/build.xml +++ b/build.xml @@ -14,9 +14,12 @@ + + + + + + Building Gitblit JAR ${gb.version} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +