@@ -19,6 +19,42 @@ genrule(
19
19
],
20
20
)
21
21
22
+ java_binary (
23
+ name = "pinned-grid" ,
24
+ data = select ({
25
+ "//common:linux" : [
26
+ "@linux_chromedriver//:chromedriver" ,
27
+ "@linux_chrome//:chrome-linux" ,
28
+ "@linux_geckodriver//:geckodriver" ,
29
+ "@linux_firefox//:firefox" ,
30
+ ],
31
+ "//common:macos" : [
32
+ "@mac_chromedriver//:chromedriver" ,
33
+ "@mac_chrome//:Chromium.app" ,
34
+ "@mac_firefox//:Firefox.app" ,
35
+ "@mac_geckodriver//:geckodriver" ,
36
+ ],
37
+ "//conditions:default" : [],
38
+ }),
39
+ jvm_flags = select ({
40
+ "//common:linux" : [
41
+ "-Dwebdriver.chrome.driver=$(location @linux_chromedriver//:chromedriver)" ,
42
+ "-Dwebdriver.chrome.binary=$(location @linux_chrome//:chrome-linux)/chrome" ,
43
+ "-Dwebdriver.gecko.driver=$(location @linux_geckodriver//:geckodriver)" ,
44
+ "-Dwebdriver.firefox.bin=$(location @linux_firefox//:firefox)/firefox" ,
45
+ ],
46
+ "//common:macos" : [
47
+ "-Dwebdriver.chrome.driver=$(location @mac_chromedriver//:chromedriver)" ,
48
+ "-Dwebdriver.chrome.binary=$(location @mac_chrome//:Chromium.app)/Contents/MacOS/Chromium" ,
49
+ "-Dwebdriver.gecko.driver=$(location @mac_geckodriver//:geckodriver)" ,
50
+ "-Dwebdriver.firefox.bin=$(location @mac_firefox//:Firefox.app)/Contents/MacOS/firefox" ,
51
+ ],
52
+ "//conditions:default" : [],
53
+ }),
54
+ main_class = "org.openqa.selenium.grid.Bootstrap" ,
55
+ runtime_deps = [":grid" ],
56
+ )
57
+
22
58
BASE_COMMAND_SRCS = [
23
59
"TemplateGridCommand.java" ,
24
60
"TemplateGridServerCommand.java" ,
@@ -91,11 +127,11 @@ java_export(
91
127
)
92
128
93
129
merge_jars (
94
- name = "add-build-info" ,
95
- inputs = [
96
- ":selenium_server_deploy.jar" ,
97
- "//java/client/src/org/openqa/selenium:manifest" ,
98
- ],
130
+ name = "add-build-info" ,
131
+ inputs = [
132
+ ":selenium_server_deploy.jar" ,
133
+ "//java/client/src/org/openqa/selenium:manifest" ,
134
+ ],
99
135
)
100
136
101
137
java_binary (
0 commit comments