Skip to content

Commit

Permalink
[Truffle] Mx: run java -version with the right environment
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Oct 4, 2016
1 parent 153397f commit a96e0c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mx.jruby/mx_jruby.py
Expand Up @@ -114,12 +114,12 @@ def mavenSetup():
env = os.environ.copy()
env['JRUBY_BUILD_MORE_QUIET'] = 'true'
# HACK: since the maven executable plugin does not configure the
# java executable that is used we unfortunately need to append it to the PATH
# java executable that is used we unfortunately need to prepend it to the PATH
javaHome = os.getenv('JAVA_HOME')
if javaHome:
env["PATH"] = javaHome + '/bin' + os.pathsep + env["PATH"]
mx.logv('Setting PATH to {}'.format(os.environ["PATH"]))
mx.run(['java', '-version'])
mx.run(['java', '-version'], env=env)
return maven_repo_arg, env

class JRubyCoreMavenProject(mx.MavenProject):
Expand Down

0 comments on commit a96e0c0

Please sign in to comment.