summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm
diff options
context:
space:
mode:
authorJonathan Nieder <jrn@google.com>2018-05-02 14:34:21 -0700
committerJonathan Nieder <jrn@google.com>2018-05-02 14:43:26 -0700
commitcdc5ec821e4cbdaa31353916ac001bb596de8c55 (patch)
treec9352cbffcd005f6f1229e2177c6815611e6c1a5 /org.eclipse.jgit.pgm
parent34bcb255ef7cec96efc3c73a270eaec97e543a0a (diff)
downloadjgit-cdc5ec821e4cbdaa31353916ac001bb596de8c55.tar.gz
jgit-cdc5ec821e4cbdaa31353916ac001bb596de8c55.zip
Bazel: Add a target to build jgit commandline tool
This works well enough for basic testing, especially the "jgit daemon" command: $ bazel build org.eclipse.jgit.pgm:jgit INFO: Analysed target //org.eclipse.jgit.pgm:jgit (39 packages loaded). INFO: Found 1 target... Target //org.eclipse.jgit.pgm:jgit up-to-date: bazel-bin/org.eclipse.jgit.pgm/jgit.jar bazel-bin/org.eclipse.jgit.pgm/jgit INFO: Elapsed time: 15.862s, Critical Path: 14.74s INFO: 42 processes: 32 linux-sandbox, 1 local, 9 worker. INFO: Build completed successfully, 60 total actions $ bazel-bin/org.eclipse.jgit.pgm/jgit rev-list HEAD^..HEAD 2>/dev/null e5ed926e02dd29b5e970d421b63b6921cc1800f5 Still to do: - suppress "Failed to load class "org.slf4j.impl.StaticLoggerBinder" output - add org.eclipse.jgit.pgm.test tests to bazel build - supply package information so that "jgit version" can work Change-Id: Ie89872839fa5aae974d5d39b6776b96332b0e83f
Diffstat (limited to 'org.eclipse.jgit.pgm')
-rw-r--r--org.eclipse.jgit.pgm/BUILD6
1 files changed, 6 insertions, 0 deletions
diff --git a/org.eclipse.jgit.pgm/BUILD b/org.eclipse.jgit.pgm/BUILD
index 07922687e3..bbf4b1c43d 100644
--- a/org.eclipse.jgit.pgm/BUILD
+++ b/org.eclipse.jgit.pgm/BUILD
@@ -25,6 +25,12 @@ java_library(
],
)
+java_binary(
+ name = "jgit",
+ runtime_deps = [":pgm"],
+ main_class = "org.eclipse.jgit.pgm.Main",
+)
+
java_import(
name = "services",
jars = [":services_jar"],