Skip to content

Commit c23b24d

Browse files
committed
Build Selenium RC java client with Buck.
1 parent d1df8ec commit c23b24d

File tree

6 files changed

+81
-2
lines changed

6 files changed

+81
-2
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
java_library(name = 'api',
2+
srcs = [
3+
'CommandProcessor.java',
4+
'Selenium.java',
5+
'SeleniumException.java',
6+
],
7+
visibility = ['PUBLIC'],
8+
)
9+
10+
java_library(name = 'selenium',
11+
srcs = [
12+
'BrowserConfigurationOptions.java',
13+
'DefaultRemoteCommand.java',
14+
'DefaultSelenium.java',
15+
'HttpCommandProcessor.java',
16+
'RemoteCommand.java',
17+
'ScreenshotListener.java',
18+
'SeleneseTestBase.java',
19+
'SeleneseTestCase.java',
20+
'SeleneseTestNgHelper.java',
21+
'SeleniumLogLevels.java',
22+
],
23+
exported_deps = [
24+
':api',
25+
':wait',
26+
'//java/client/src/com/thoughtworks/selenium/condition:condition',
27+
],
28+
deps = [
29+
'//java/client/src/org/openqa/selenium:webdriver-api',
30+
'//java/client/src/org/openqa/selenium/net:net',
31+
'//third_party/java/guava-libraries:guava-libraries',
32+
'//third_party/java/junit:junit',
33+
'//third_party/java/testng:testng',
34+
],
35+
visibility = ['PUBLIC'],
36+
)
37+
38+
java_library(name = 'wait',
39+
srcs = [
40+
'Wait.java',
41+
],
42+
deps = [
43+
':api',
44+
])
45+

java/client/src/com/thoughtworks/selenium/build.desc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
java_library(name = "api",
42
srcs = [
53
"CommandProcessor.java",
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
java_library(name = 'condition',
3+
srcs = glob(['*.java']),
4+
deps = [
5+
'//java/client/src/com/thoughtworks/selenium:api',
6+
'//third_party/java/junit:junit',
7+
],
8+
visibility = [
9+
'//java/client/src/com/thoughtworks/selenium:selenium',
10+
],
11+
)

third_party/java/beanshell/BUCK

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
prebuilt_jar(name = 'beanshell',
3+
binary_jar = 'bsh-1.3.0.jar',
4+
visibility = [
5+
'//third_party/java/testng:testng',
6+
],
7+
)

third_party/java/jcommander/BUCK

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
prebuilt_jar(name = 'jcommander',
3+
binary_jar = 'jcommander-1.29.jar',
4+
visibility = [
5+
'//third_party/java/testng:testng',
6+
],
7+
)

third_party/java/testng/BUCK

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
prebuilt_jar(name = 'testng',
2+
binary_jar = 'testng-6.8.5.jar',
3+
deps = [
4+
'//third_party/java/beanshell:beanshell',
5+
'//third_party/java/jcommander:jcommander',
6+
],
7+
visibility = [
8+
'//java/client/src/com/thoughtworks/selenium:selenium',
9+
],
10+
)
11+

0 commit comments

Comments
 (0)