Skip to content

Commit 905dd6f

Browse files
committed
Make sure that the RC server built with Buck works.
Turns out we were missing some files. Fixed now.
1 parent 357a6cc commit 905dd6f

File tree

4 files changed

+75
-2
lines changed
  • javascript
  • java/server/src/org/openqa/selenium/server
  • third_party/js/sizzle

4 files changed

+75
-2
lines changed

java/server/src/org/openqa/selenium/server/BUCK

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ java_library(name = 'server',
2424
'//java/server/src/org/openqa/selenium/remote/server:server',
2525
'//java/server/src/org/openqa/selenium/remote/server:sessions',
2626
'//java/server/src/org/openqa/selenium/remote/server/log:log',
27+
':selenium-core',
2728
'//third_party/java/commons-logging:commons-logging',
2829
'//third_party/java/guava-libraries:guava-libraries',
2930
'//third_party/java/gson:gson',
@@ -36,12 +37,16 @@ java_library(name = 'server',
3637
],
3738
)
3839

40+
prebuilt_jar(name = 'selenium-core',
41+
binary_jar = '//javascript/selenium-core:selenium-core',
42+
)
43+
3944
prebuilt_jar(name = 'resources',
4045
binary_jar = ':resources-zip',
4146
)
4247

4348
zip_file(name = 'resources-zip',
44-
out = 'resources.jar',
49+
out = 'resources-sources.jar',
4550
srcs = [
4651
'VERSION.txt',
4752
] + glob([

javascript/selenium-atoms/BUCK

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ js_binary(name = 'selenium-atoms',
2222
flags = [
2323
'--define=goog.NATIVE_ARRAY_PROTOTYPES=false',
2424
],
25+
visibility = [
26+
'//javascript/selenium-core:atoms.js',
27+
],
2528
)
2629

2730

javascript/selenium-core/BUCK

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
2+
zip_file(
3+
name = 'selenium-core',
4+
srcs = [
5+
':core',
6+
],
7+
visibility = [
8+
'//java/server/src/org/openqa/selenium/server:selenium-core',
9+
],
10+
)
11+
12+
folder(
13+
name = 'core',
14+
srcs = glob([
15+
'*.css',
16+
'*.html',
17+
'*.png',
18+
'icons/*.png',
19+
'lib/**/*',
20+
'scripts/*',
21+
'xpath/*',
22+
]) + [
23+
':lib',
24+
':scripts',
25+
':TestRunner.hta',
26+
':RemoteRunner.hta',
27+
],
28+
)
29+
30+
folder(
31+
name = 'scripts',
32+
srcs = [
33+
':atoms.js',
34+
],
35+
)
36+
37+
export_file(
38+
name = 'atoms.js',
39+
src = '//javascript/selenium-atoms:selenium-atoms',
40+
)
41+
42+
folder(
43+
name = 'lib',
44+
srcs = [
45+
':sizzle.js',
46+
],
47+
)
48+
49+
export_file(
50+
name = 'sizzle.js',
51+
src = '//third_party/js/sizzle:sizzle',
52+
)
53+
54+
export_file(
55+
name = 'TestRunner.hta',
56+
src = 'TestRunner.html',
57+
)
58+
59+
export_file(
60+
name = 'RemoteRunner.hta',
61+
src = 'RemoteRunner.html',
62+
)

third_party/js/sizzle/BUCK

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22
export_file(name = 'sizzle',
33
src = 'sizzle.js',
44
out = 'sizzle.js',
5-
visibility = [ '//java/client/src/com/thoughtworks/selenium/webdriven:sizzle' ],
5+
visibility = [
6+
'//java/client/src/com/thoughtworks/selenium/webdriven:sizzle',
7+
'//javascript/selenium-core:sizzle.js',
8+
],
69
)

0 commit comments

Comments
 (0)