Source code file content

Revision: 57058584d58e51635377153e0caed6b394de1ac0

Add support for passNil
» Project Revision History

» Checkout URL

main / generate_filter_data.rb

Size: 455 bytes, 1 line
timestamp = Time.now.strftime("%Y-%m-%d %H:%M")

commit = nil
begin
  commit_lines = `git branch -v --no-color`.to_a
  commit = commit_lines.grep(/^\* /).first.split[2]
rescue Exception => e
  $stderr.puts "Had a problem when finding out commit info - #{e} (THIS IS NOT A CATASTROPHIC ERROR, you can still build Ioke)"
  commit = "???"
end

File.open("version_data.properties", "w") do |f|
  f.puts("DATE=#{timestamp}")
  f.puts("COMMIT=#{commit}")
end

  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close