Skip to content

Commit

Permalink
[build] fix java-release-zip target which should fix nightly build
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Dec 28, 2023
1 parent 3bacf52 commit 49e941d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -338,17 +338,17 @@ task :'java-release-zip' do
Bazel.execute('build', ['--stamp'], '//java/src/org/openqa/selenium/grid:server-zip')
Bazel.execute('build', ['--stamp'], '//java/src/org/openqa/selenium/grid:executable-grid')
mkdir_p 'build/dist'
FileUtils.rm_f('build/dist/*.{server,java}*')
Dir.glob('build/dist/*{java,server}*').each { |file| FileUtils.rm_f(file) }

FileUtils.copy('bazel-bin/java/src/org/openqa/selenium/grid/server-zip.zip',
"build/dist/selenium-server-#{java_version}.zip")
FileUtils.chmod(666, "build/dist/selenium-server-#{java_version}.zip")
FileUtils.chmod(0666, "build/dist/selenium-server-#{java_version}.zip")
FileUtils.copy('bazel-bin/java/src/org/openqa/selenium/client-zip.zip',
"build/dist/selenium-java-#{java_version}.zip")
FileUtils.chmod(666, "build/dist/selenium-java-#{java_version}.zip")
FileUtils.chmod(0666, "build/dist/selenium-java-#{java_version}.zip")
FileUtils.copy('bazel-bin/java/src/org/openqa/selenium/grid/selenium',
"build/dist/selenium-server-#{java_version}.jar")
FileUtils.chmod(777, "build/dist/selenium-server-#{java_version}.jar")
FileUtils.chmod(0777, "build/dist/selenium-server-#{java_version}.jar")
end

task 'release-java': %i[java-release-zip publish-maven]
Expand Down

0 comments on commit 49e941d

Please sign in to comment.