Skip to content

Commit f9ddb15

Browse files
[build] Hack to get around Bazel not outputting things to stdout/strerr for docs task
1 parent c83ce12 commit f9ddb15

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Rakefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,10 @@ task javadocs: %i[//java/src/org/openqa/selenium/grid:all-javadocs] do
300300
rm_rf 'build/javadoc'
301301
mkdir_p 'build/javadoc'
302302

303-
out = Rake::Task['//java/src/org/openqa/selenium/grid:all-javadocs'].out
303+
# Temporary hack, bazel is not outputting where things are so we need to do it manually.
304+
# This will only work on Posix based OSes
305+
Rake::Task['//java/src/org/openqa/selenium/grid:all-javadocs']
306+
out = 'bazel-bin/java/src/org/openqa/selenium/grid/all-javadocs.jar'
304307

305308
cmd = %{cd build/javadoc && jar xf "../../#{out}" 2>&1}
306309
if SeleniumRake::Checks.windows?

0 commit comments

Comments
 (0)