File tree 5 files changed +55
-3
lines changed
5 files changed +55
-3
lines changed Original file line number Diff line number Diff line change 1
1
workspace (name = "gitiles" )
2
2
load ("//tools:bazlets.bzl" , "load_bazlets" )
3
- load_bazlets (commit = "3afbeab55ece585dbfc7a980bf7214b24ddbbe86" )
3
+ load_bazlets (
4
+ commit = "e10ae3f85781aa15054be802b2a9f9465b1bf1e0" ,
5
+ # local_path = "/home/<user>/projects/bazlets"
6
+ )
4
7
load ("@com_googlesource_gerrit_bazlets//tools:maven_jar.bzl" ,
5
8
"maven_jar" ,
6
9
"GERRIT" )
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ java_library(
13
13
"//lib/slf4j:slf4j-simple" ,
14
14
"//lib/soy" ,
15
15
],
16
+ visibility = ["//visibility:public" ],
16
17
)
17
18
18
19
java_binary (
Original file line number Diff line number Diff line change @@ -56,14 +56,13 @@ java_library(
56
56
load ("@com_googlesource_gerrit_bazlets//tools:junit.bzl" , "junit_tests" )
57
57
58
58
junit_tests (
59
- name = "ServletTests " ,
59
+ name = "servlet_tests " ,
60
60
srcs = glob (
61
61
[
62
62
"src/test/java/**/*Test.java" ,
63
63
],
64
64
exclude = ["**/ServletTest.java" ],
65
65
),
66
- visibility = ["//visibility:public" ],
67
66
runtime_deps = ["//lib/junit:hamcrest-core" ],
68
67
deps = DEPS + [
69
68
":servlet" ,
@@ -73,6 +72,7 @@ junit_tests(
73
72
"//lib/jgit:junit" ,
74
73
"//lib/junit" ,
75
74
],
75
+ visibility = ["//visibility:public" ],
76
76
)
77
77
78
78
load ("@com_googlesource_gerrit_bazlets//tools:javadoc.bzl" , "java_doc" )
Original file line number Diff line number Diff line change
1
+ load ("@com_googlesource_gerrit_bazlets//tools:classpath.bzl" , "classpath_collector" )
2
+ load ("@com_googlesource_gerrit_bazlets//tools:py_binary_path.bzl" , "py_binary_path" )
3
+
4
+ DEPS = [
5
+ "//gitiles-servlet:servlet" ,
6
+ "//gitiles-dev:lib" ,
7
+ ]
8
+
9
+ java_library (
10
+ name = "classpath" ,
11
+ runtime_deps = DEPS ,
12
+ )
13
+
14
+ classpath_collector (
15
+ name = "main_classpath_collect" ,
16
+ testonly = 1 ,
17
+ deps = DEPS + [
18
+ "//gitiles-servlet:servlet_tests" ,
19
+ ],
20
+ )
21
+
22
+ # TODO(davido): This is a hack:
23
+ # https://github.com/bazelbuild/bazel/issues/2452
24
+ # We know the py_binary rule, but for *reasons* we cannot
25
+ # use `buck run <rule>. Unfortunately, a query to retrieve
26
+ # the path was removed in Bazel. So we are forced to do this
27
+ # hack to access python script outside of the Bazel.
28
+ py_binary_path (
29
+ name = "project.py" ,
30
+ py_binary_label = "@com_googlesource_gerrit_bazlets//tools/eclipse:project" ,
31
+ )
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # Copyright (C) 2017 The Android Open Source Project
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ bazel build tools/eclipse:project.py
17
+ ` bazel info output_base` /` cat bazel-bin/tools/eclipse/project.py.txt` -n gitiles -r .
You can’t perform that action at this time.
0 commit comments