@@ -336,7 +336,7 @@ task :'java-release-zip' do
336
336
Bazel . execute ( 'build' , [ '--stamp' ] , '//java/src/org/openqa/selenium/grid:server-zip' )
337
337
Bazel . execute ( 'build' , [ '--stamp' ] , '//java/src/org/openqa/selenium/grid:executable-grid' )
338
338
mkdir_p 'build/dist'
339
- FileUtils . rm_f ( 'build/dist/**/* .{server,java}*' , force : true )
339
+ FileUtils . rm_f ( 'build/dist/*.{server,java}*' )
340
340
341
341
FileUtils . copy ( 'bazel-bin/java/src/org/openqa/selenium/grid/server-zip.zip' ,
342
342
"build/dist/selenium-server-#{ java_version } .zip" )
@@ -559,14 +559,14 @@ namespace :py do
559
559
task :update do
560
560
Bazel . execute ( 'build' , [ ] , '//py:selenium' )
561
561
562
- FileUtils . rm_r ( 'py/selenium/webdriver/common/devtools/' , force : true )
562
+ FileUtils . rm_rf ( 'py/selenium/webdriver/common/devtools/' )
563
563
FileUtils . cp_r ( 'bazel-bin/py/selenium/webdriver/.' , 'py/selenium/webdriver' , remove_destination : true )
564
564
end
565
565
566
566
desc 'Generate Python documentation'
567
567
task :docs do
568
- FileUtils . rm_r ( 'build/docs/api/py/' , force : true )
569
- FileUtils . rm_r ( 'build/docs/doctrees/' , force : true )
568
+ FileUtils . rm_rf ( 'build/docs/api/py/' )
569
+ FileUtils . rm_rf ( 'build/docs/doctrees/' )
570
570
begin
571
571
sh 'tox -c py/tox.ini -e docs' , verbose : true
572
572
rescue StandardError
@@ -611,7 +611,7 @@ namespace :rb do
611
611
612
612
desc 'Generate Ruby documentation'
613
613
task :docs do
614
- FileUtils . rm_r ( 'build/docs/api/rb/' , force : true )
614
+ FileUtils . rm_rf ( 'build/docs/api/rb/' )
615
615
Bazel . execute ( 'run' , [ ] , '//rb:docs' )
616
616
FileUtils . cp_r ( 'bazel-bin/rb/docs.rb.sh.runfiles/selenium/docs/api/rb/.' , 'build/docs/api/rb' )
617
617
end
@@ -634,7 +634,7 @@ namespace :dotnet do
634
634
args = arguments [ :args ] ? [ arguments [ :args ] ] : [ '--stamp' ]
635
635
Rake ::Task [ 'dotnet:build' ] . invoke ( args )
636
636
mkdir_p 'build/dist'
637
- FileUtils . rm_f ( 'build/dist/*dotnet*' , force : true )
637
+ FileUtils . rm_f ( 'build/dist/*dotnet*' )
638
638
639
639
FileUtils . copy ( 'bazel-bin/dotnet/release.zip' , "build/dist/selenium-dotnet-#{ dotnet_version } .zip" )
640
640
FileUtils . chmod ( 666 , "build/dist/selenium-dotnet-#{ dotnet_version } .zip" )
0 commit comments