Skip to content

Commit

Permalink
[Truffle] JT: use the most recent build of mx or maven, whichever was…
Browse files Browse the repository at this point in the history
… the latest built.
  • Loading branch information
eregon committed Dec 12, 2016
1 parent 4b10c01 commit a5c126a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tool/jt.rb
Expand Up @@ -148,8 +148,11 @@ def self.find_sl
end

def self.mx?
mx_ruby_jar = "#{JRUBY_DIR}/mxbuild/dists/ruby.jar"
File.exist?(mx_ruby_jar)
mx_jar = "#{JRUBY_DIR}/mxbuild/dists/ruby.jar"
mvn_jar = "#{JRUBY_DIR}/lib/jruby-truffle.jar"
mx_time = File.exist?(mx_jar) ? File.mtime(mx_jar) : 0
mvn_time = File.exist?(mvn_jar) ? File.mtime(mvn_jar) : 0
mx_time > mvn_time
end

def self.find_ruby
Expand Down

0 comments on commit a5c126a

Please sign in to comment.