File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed
examples/bazel-example/src/main/java/srcjar_example
scip-java/src/main/resources/scip-java Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,12 @@ java_library(
11
11
":generated-srcjar" ,
12
12
],
13
13
)
14
+
15
+ java_library (
16
+ name = "other_library" ,
17
+ srcs = [
18
+ "Baz.java" , # create a new file in source at test/Baz.java, alongside test/Foo.java
19
+ ":generated-srcjar" ,
20
+ ],
21
+ )
22
+
Original file line number Diff line number Diff line change
1
+ package com .testing ;
2
+
3
+ public class Baz {
4
+ public Bar baz (Bar value ) {
5
+ return value ;
6
+ }
7
+ }
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ def _scip_java(target, ctx):
70
70
output_dir = []
71
71
72
72
for source_jar in source_jars :
73
- dir = ctx .actions .declare_directory (" extracted_srcjar/" + source_jar .short_path )
73
+ dir = ctx .actions .declare_directory (ctx . label . name + "/ extracted_srcjar/" + source_jar .short_path )
74
74
output_dir .append (dir )
75
75
76
76
ctx .actions .run_shell (
You can’t perform that action at this time.
0 commit comments