-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bazel] Get the RC emulation servlet running with bazel
This means compiling a whole bunch of stuff that has avoided being pulled in so far. I've cheated and used a massive glob in one rule to make life easier. It's probable we'll need to adjust this at some point.
- Loading branch information
Showing
12 changed files
with
133 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
java/server/src/com/thoughtworks/selenium/webdriven/BUILD.bazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
load("//java:version.bzl", "SE_VERSION") | ||
|
||
java_library( | ||
name = "webdriven", | ||
tags = [ | ||
"maven_coordinates=org.seleniumhq.selenium:selenium-leg-rc:%s" % SE_VERSION, | ||
], | ||
srcs = glob(["*.java"]), | ||
deps = [ | ||
"//java/client/src/com/thoughtworks/selenium", | ||
"//java/client/src/com/thoughtworks/selenium/webdriven", | ||
"//java/client/src/org/openqa/selenium/chrome", | ||
"//java/client/src/org/openqa/selenium/edge", | ||
"//java/client/src/org/openqa/selenium/firefox", | ||
"//java/client/src/org/openqa/selenium/ie", | ||
"//java/client/src/org/openqa/selenium/opera", | ||
"//java/client/src/org/openqa/selenium/remote", | ||
"//java/client/src/org/openqa/selenium/safari", | ||
"//java/server/src/org/openqa/selenium/grid/session", | ||
"//java/server/src/org/openqa/selenium/remote/server", | ||
"//third_party/java/guava", | ||
"//third_party/java/servlet:javax.servlet-api", | ||
], | ||
visibility = [ | ||
"//java/server/test/com/thoughtworks/selenium/webdriven:__pkg__", | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
java/server/src/org/openqa/selenium/grid/session/BUILD.bazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
java_library( | ||
name = "session", | ||
srcs = glob([ | ||
"*.java", | ||
"remote/*.java", | ||
]), | ||
deps = [ | ||
"//java/client/src/org/openqa/selenium/io", | ||
"//java/client/src/org/openqa/selenium/net", | ||
"//java/client/src/org/openqa/selenium/remote", | ||
"//java/server/src/org/openqa/selenium/grid/data", | ||
"//java/server/src/org/openqa/selenium/grid/web", | ||
"//java/server/src/org/openqa/selenium/remote/server/jmx", | ||
"//third_party/java/guava", | ||
], | ||
visibility = [ | ||
"//java/server/src/com/thoughtworks/selenium:__subpackages__", | ||
"//java/server/src/org/openqa/selenium/remote/server:__subpackages__", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
java/server/src/org/openqa/selenium/remote/server/BUILD.bazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
|
||
# Only enough to get the webdriven rc emulation working | ||
# TODO(simon): Migrate webdriver rc emulation off this stack | ||
java_library( | ||
name = "server", | ||
srcs = [ | ||
"ActiveSessionFactory.java", | ||
"ActiveSessionListener.java", | ||
"ActiveSessions.java", | ||
"AllHandlers.java", | ||
"DefaultDriverProvider.java", | ||
"DriverProvider.java", | ||
"DriverSessions.java", | ||
"InMemorySession.java", | ||
"JsonHttpCommandHandler.java", | ||
"KnownElements.java", | ||
"InputStreamWrappingServletInputStream.java", | ||
"NewSessionPipeline.java", | ||
"RequiresAllSessions.java", | ||
"RequiresSession.java", | ||
"Session.java", | ||
"StaticResourceHandler.java", | ||
"WebDriverServlet.java", | ||
] + glob([ | ||
"commandhandler/*.java", | ||
"handler/*.java", | ||
"handler/html5/*.java", | ||
"handler/interactions/*.java", | ||
"handler/interactions/touch/*.java", | ||
"handler/internal/*.java", | ||
"handler/mobile/*.java", | ||
"log/*.java", | ||
"rest/*.java", | ||
"xdrpc/*.java", | ||
]), | ||
deps = [ | ||
"//java/client/src/org/openqa/selenium/io", | ||
"//java/client/src/org/openqa/selenium/json", | ||
"//java/client/src/org/openqa/selenium/remote", | ||
"//java/server/src/org/openqa/selenium/grid/data", | ||
"//java/server/src/org/openqa/selenium/grid/log", | ||
"//java/server/src/org/openqa/selenium/grid/server", | ||
"//java/server/src/org/openqa/selenium/grid/session", | ||
"//java/server/src/org/openqa/selenium/grid/web", | ||
"//third_party/java/guava", | ||
"//third_party/java/servlet:javax.servlet-api", | ||
], | ||
visibility = [ | ||
"//java/server/src/com/thoughtworks/selenium:__subpackages__", | ||
"//java/server/test/com/thoughtworks/selenium:__subpackages__", | ||
] | ||
|
||
) |
7 changes: 7 additions & 0 deletions
7
java/server/src/org/openqa/selenium/remote/server/jmx/BUILD.bazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
java_library( | ||
name = "jmx", | ||
srcs = glob(["*.java"]), | ||
visibility = [ | ||
"//java/server/src/org/openqa/selenium/grid/session:__pkg__", | ||
] | ||
) |
17 changes: 17 additions & 0 deletions
17
java/server/test/com/thoughtworks/selenium/webdriven/BUILD.bazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
load("//java:rules.bzl", "java_test_suite") | ||
|
||
java_test_suite( | ||
name = "MediumTests", | ||
size = "medium", | ||
srcs = glob(["*Test.java"]), | ||
deps = [ | ||
"//java/client/src/com/thoughtworks/selenium", | ||
"//java/client/src/org/openqa/selenium/net", | ||
"//java/client/test/org/openqa/selenium/environment", | ||
"//java/client/test/org/openqa/selenium/testing:test-base", | ||
"//java/server/src/com/thoughtworks/selenium/webdriven", | ||
"//java/server/src/org/openqa/selenium/remote/server", | ||
"//third_party/java/jetty", | ||
"//third_party/java/junit", | ||
] | ||
) |