From f9ddb1500ee239d3753a33db0d362719bddd5211 Mon Sep 17 00:00:00 2001 From: AutomatedTester Date: Wed, 20 Oct 2021 18:18:23 +0100 Subject: [PATCH] [build] Hack to get around Bazel not outputting things to stdout/strerr for docs task --- Rakefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 831abdd1a09ec..e3cab19de4d10 100644 --- a/Rakefile +++ b/Rakefile @@ -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?