Skip to content

Commit 5772b63

Browse files
committed
Include selenium version in build info for java
1 parent 82b9913 commit 5772b63

File tree

1 file changed

+7
-0
lines changed
  • java/client/src/org/openqa/selenium

1 file changed

+7
-0
lines changed

java/client/src/org/openqa/selenium/BUCK

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ java_library(name = 'core',
5252
'internal/FindsBy*.java',
5353
'mobile/*.java',
5454
]),
55+
manifest_file = ':manifest',
5556
deps = [
5657
':beta',
5758
':exceptions',
@@ -67,6 +68,12 @@ java_library(name = 'core',
6768
],
6869
)
6970

71+
genrule(name = 'manifest',
72+
out = 'manifest.mf',
73+
bash = 'printf "\nName: Build-Info\nSelenium-Version: {}\n" > $OUT'.format(SE_VERSION),
74+
cmd_exe = "(echo.\necho Name: Build-Info\necho Selenium-Version: {}\n) > %OUT%".format(SE_VERSION),
75+
)
76+
7077
java_library(name = 'beta',
7178
srcs = [ 'Beta.java' ],
7279
visibility = [

0 commit comments

Comments
 (0)