Skip to content

Commit

Permalink
[build] Hack to get around Bazel not outputting things to stdout/stre…
Browse files Browse the repository at this point in the history
…rr for docs task
  • Loading branch information
AutomatedTester committed Oct 20, 2021
1 parent c83ce12 commit f9ddb15
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,10 @@ task javadocs: %i[//java/src/org/openqa/selenium/grid:all-javadocs] do
rm_rf 'build/javadoc'
mkdir_p 'build/javadoc'

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

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

0 comments on commit f9ddb15

Please sign in to comment.