File tree Expand file tree Collapse file tree 2 files changed +25
-15
lines changed
java/com/engflow/internship/binaryinput Expand file tree Collapse file tree 2 files changed +25
-15
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,16 @@ build:magnesite_bes --bes_backend=grpcs://magnesite.cluster.engflow.com
7575build:magnesite_bes --bes_lifecycle_events
7676build:magnesite_bes --bes_results_url=https://magnesite.cluster.engflow.com/invocation/
7777
78+
79+ # EngFlow Remote caching
80+ build:engflow-rc --remote_cache=grpc://127.0.0.1:8080
81+ # EngFlow BES forwarding
82+ build:engflow-bes --bes_backend=grpc://127.0.0.1:8080
83+ build:engflow-bes --bes_results_url=http://127.0.0.1:8080/invocation/
84+ # EngFlow Remote caching and BES forwarding
85+ build:engflow --config=engflow-rc
86+ build:engflow --config=engflow-bes
87+
7888# To authenticate with the clusters above, create a .bazelrc.user file.
7989# This file is not checked into Git because it refers to local file system paths.
8090#
Original file line number Diff line number Diff line change 11load ("@rules_java//java:defs.bzl" , "java_binary" , "java_library" )
22
3- NUM_FILES = 10
4-
5- #Main class
6- java_binary (
7- name = "main" ,
8- srcs = ["Main.java" ],
9- main_class = "com.engflow.internship.binaryinput.Main" ,
10- deps = [
11- ":genbinary"
12- ],
13- args = [str (NUM_FILES )],
14- )
3+ NUM_FILES = 500
154
165#Generates a number of java files based on the value of NUM_FILES
176#Each file is named HelloX.java where X is the number of the file
@@ -25,8 +14,19 @@ java_binary(
2514) for x in range (1 ,NUM_FILES + 1 )]
2615
2716#Generates a java library that contains all the generated java files
28- java_library (
29- name = "genbinary" ,
17+ [ java_library (
18+ name = "genbinary" + str ( x ) ,
3019 srcs = [":Hello" + str (x ) + ".java" for x in range (1 ,NUM_FILES + 1 )],
3120 visibility = ["//visibility:public" ],
32- )
21+ ) for x in range (1 ,NUM_FILES + 1 )]
22+
23+ #Main class
24+ java_binary (
25+ name = "main" ,
26+ srcs = ["Main.java" ],
27+ main_class = "com.engflow.internship.binaryinput.Main" ,
28+ deps = [
29+ ":genbinary" + str (x ) for x in range (1 ,NUM_FILES + 1 )
30+ ],
31+ args = [str (NUM_FILES )],
32+ )
You can’t perform that action at this time.
0 commit comments