forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First pass at build the RC server with Buck.
- Loading branch information
Showing
20 changed files
with
206 additions
and
11 deletions.
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
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
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,11 @@ | ||
java_library(name = 'cybervillains', | ||
srcs = glob(['ca/*.java']), | ||
deps = [ | ||
'//java/server/src/org/openqa/selenium/server/security:security', | ||
'//third_party/java/bouncycastle:bouncycastle', | ||
], | ||
visibility = [ | ||
'//java/server/src/org/openqa/selenium/server:server', | ||
], | ||
) | ||
|
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,54 @@ | ||
java_library(name = 'sessions', | ||
srcs = [ | ||
'DriverSessions.java', | ||
'KnownElements.java', | ||
'Session.java', | ||
], | ||
deps = [ | ||
'//java/client/src/org/openqa/selenium:webdriver-api', | ||
'//java/client/src/org/openqa/selenium/io:io', | ||
'//java/client/src/org/openqa/selenium/remote:api', | ||
'//third_party/java/commons-logging:commons-logging', | ||
'//third_party/java/guava-libraries:guava-libraries', | ||
], | ||
visibility = [ | ||
'//java/server/src/org/openqa/selenium/server:server', | ||
], | ||
) | ||
|
||
java_library(name = 'server', | ||
srcs = [ | ||
'CapabilitiesComparator.java', | ||
'DefaultDriverFactory.java', | ||
'DefaultDriverProvider.java', | ||
'DefaultDriverSessions.java', | ||
'DefaultSession.java', | ||
'DriverFactory.java', | ||
'DriverProvider.java', | ||
'DriverServlet.java', | ||
'JsonHttpCommandHandler.java', | ||
'JsonParametersAware.java', | ||
'SessionCleaner.java', | ||
'SnapshotScreenListener.java', | ||
] + glob([ | ||
'handler/**/*.java', | ||
'rest/*.java', | ||
'xdrpc/*.java', | ||
]), | ||
deps = [ | ||
':sessions', | ||
'//java/client/src/org/openqa/selenium:codecs', | ||
'//java/client/src/org/openqa/selenium:webdriver-api', | ||
'//java/client/src/org/openqa/selenium/io:io', | ||
'//java/client/src/org/openqa/selenium/logging:logging', | ||
'//java/client/src/org/openqa/selenium/remote:remote', | ||
'//java/client/src/org/openqa/selenium/support/events:events', | ||
'//java/server/src/org/openqa/selenium/remote/server/log:log', | ||
'//third_party/java/gson:gson', | ||
'//third_party/java/guava-libraries:guava-libraries', | ||
'//third_party/java/servlet-api:servlet-api', | ||
], | ||
visibility = [ | ||
'//java/server/src/org/openqa/selenium/server:server', | ||
], | ||
) |
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
12 changes: 12 additions & 0 deletions
12
java/server/src/org/openqa/selenium/remote/server/log/BUCK
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,12 @@ | ||
java_library(name = 'log', | ||
srcs = glob(['*.java']), | ||
deps = [ | ||
'//java/client/src/org/openqa/selenium:webdriver-api', | ||
'//java/client/src/org/openqa/selenium/logging:logging', | ||
'//java/client/src/org/openqa/selenium/remote:api', | ||
'//third_party/java/guava-libraries:guava-libraries', | ||
], | ||
visibility = [ | ||
'//java/server/src/...', | ||
], | ||
) |
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
11 changes: 8 additions & 3 deletions
11
...org/openqa/selenium/remote/Responses.java → ...elenium/remote/server/rest/Responses.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
java_library(name = 'security', | ||
srcs = glob(['*.java']), | ||
deps = [ | ||
'//java/client/src/org/openqa/selenium/io:io', | ||
'//third_party/java/bouncycastle:bouncycastle', | ||
'//third_party/java/guava-libraries:guava-libraries', | ||
], | ||
visibility = [ | ||
'//java/server/src/cybervillains:cybervillains', | ||
], | ||
) |
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,50 @@ | ||
|
||
java_binary(name = 'rc', | ||
main_class = "org.openqa.selenium.server.SeleniumServer", | ||
deps = [ | ||
':server', | ||
], | ||
) | ||
|
||
java_library(name = 'server', | ||
srcs = glob(['**/*.java'], excludes = ['security/*.java']), | ||
deps = [ | ||
':resources', | ||
'//java/client/src/org/openqa/selenium:codecs', | ||
'//java/client/src/org/openqa/selenium:webdriver-api', | ||
'//java/client/src/org/openqa/selenium/browserlaunchers/locators:locators', | ||
'//java/client/src/org/openqa/selenium/io:io', | ||
'//java/client/src/org/openqa/selenium/net:net', | ||
'//java/client/src/org/openqa/selenium/os:os', | ||
'//java/client/src/org/openqa/selenium/remote:api', | ||
'//java/client/src/org/openqa/selenium/remote:capabilities', | ||
'//java/client/src/com/thoughtworks/selenium:api', | ||
'//java/client/src/com/thoughtworks/selenium/webdriven:webdriven', | ||
'//java/server/src/cybervillains:cybervillains', | ||
'//java/server/src/org/openqa/selenium/remote/server:server', | ||
'//java/server/src/org/openqa/selenium/remote/server:sessions', | ||
'//java/server/src/org/openqa/selenium/remote/server/log:log', | ||
'//third_party/java/commons-logging:commons-logging', | ||
'//third_party/java/guava-libraries:guava-libraries', | ||
'//third_party/java/gson:gson', | ||
'//third_party/java/jetty:jetty-for-rc', | ||
], | ||
) | ||
|
||
prebuilt_jar(name = 'resources', | ||
binary_jar = ':resources-zip', | ||
) | ||
|
||
zip(name = 'resources-zip', | ||
out = 'resources.jar', | ||
srcs = [ | ||
'VERSION.txt', | ||
] + glob([ | ||
'customProfileDirCUSTFF/**/*', | ||
'customProfileDirCUSTFFCHROME/**/*', | ||
'hudsuckr/*', | ||
'konqueror/*', | ||
'opera/*', | ||
'sslSupport/*', | ||
]), | ||
) |
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,11 @@ | ||
java_library(name = 'security', | ||
srcs = glob(['*.java']), | ||
deps = [ | ||
'//java/client/src/org/openqa/selenium/io:io', | ||
'//third_party/java/bouncycastle:bouncycastle', | ||
'//third_party/java/guava-libraries:guava-libraries', | ||
], | ||
visibility = [ | ||
'//java/server/src/cybervillains:cybervillains', | ||
], | ||
) |
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,32 @@ | ||
java_library(name = 'bouncycastle', | ||
exported_deps = [ | ||
':pkix', | ||
':prov', | ||
], | ||
visibility = [ | ||
'//java/server/src/cybervillains:cybervillains', | ||
'//java/server/src/org/openqa/selenium/server/security:security', | ||
], | ||
) | ||
|
||
#JARS = ['bcpkix-jdk15on-1.48.jar', 'bcprov-jdk15on-1.48.jar',] | ||
|
||
genrule(name = 'repack-bcpkix', | ||
cmd = 'jar xf bcpkix-jdk15on-1.48.jar && rm META-INF/BCKEY* && jar cf $OUT *', | ||
srcs = [ 'bcpkix-jdk15on-1.48.jar', ], | ||
out = 'bouncycastle-pkix-jdk15on-1.48.jar', | ||
) | ||
|
||
prebuilt_jar(name = 'pkix', | ||
binary_jar = ':repack-bcpkix', | ||
) | ||
|
||
genrule(name = 'repack-bcprov', | ||
cmd = 'jar xf bcprov-jdk15on-1.48.jar && rm META-INF/BCKEY* && jar cf $OUT *', | ||
srcs = [ 'bcprov-jdk15on-1.48.jar', ], | ||
out = 'bouncycastle-prov-jdk15on-1.48.jar', | ||
) | ||
|
||
prebuilt_jar(name = 'prov', | ||
binary_jar = ':repack-bcprov', | ||
) |
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
prebuilt_jar(name = 'commons-logging', | ||
binary_jar = 'commons-logging-1.1.3.jar', | ||
visibility = [ | ||
'//java/server/src/org/openqa/selenium/remote/server:sessions', | ||
'//java/server/src/org/openqa/selenium/server:server', | ||
'//third_party/java/...', | ||
], | ||
) |
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