We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 371911b + 57324e1 commit 3739eeeCopy full SHA for 3739eee
rake_tasks/java.rake
@@ -396,8 +396,13 @@ task :format do
396
java_files = Dir.glob(File.join(Dir.pwd, 'java', '**', '*.java'))
397
return if java_files.empty?
398
399
- args = ['--', '--replace'] + java_files
400
- Bazel.execute('run', args, '//scripts:google-java-format')
+ Tempfile.create('google-java-format-files') do |f|
+ java_files.each { |file| f.puts(file) }
401
+ f.flush
402
+
403
+ args = ['--', '--replace', "@#{f.path}"]
404
+ Bazel.execute('run', args, '//scripts:google-java-format')
405
+ end
406
end
407
408
# ErrorProne runs at build time, SpotBugs runs as test targets in RBE
0 commit comments