Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (10 sloc) 251 Bytes
desc 'Make all files use UNIX (\n) line endings'
task :fix_cr_lf do
files = FileList['**/*.java']
files.each do |f|
next if File.directory?(f)
s = IO.read(f)
s.gsub!(/\r?\n/, "\n")
File.open(f, "w") { |io| io.write(s) }
end
end