Mercurial > hg > graal-compiler
diff mx/mx_graal.py @ 16729:3d148f5e90b8
mx: refactor maven_install_truffle such that it uses specified paths from the project file
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Fri, 08 Aug 2014 23:14:37 +0200 |
parents | 6de97968e3ef |
children | 9f5e33cf8d52 |
line wrap: on
line diff
--- a/mx/mx_graal.py Fri Aug 08 17:18:48 2014 +0200 +++ b/mx/mx_graal.py Fri Aug 08 23:14:37 2014 +0200 @@ -1543,10 +1543,10 @@ def maven_install_truffle(args): """install Truffle into your local Maven repository""" - mx.archive(["@TRUFFLE"]) - mx.run(['mvn', 'install:install-file', '-DgroupId=com.oracle', '-DartifactId=truffle', '-Dversion=' + graal_version('SNAPSHOT'), '-Dpackaging=jar', '-Dfile=build/truffle.jar']) - mx.archive(["@TRUFFLE-DSL-PROCESSOR"]) - mx.run(['mvn', 'install:install-file', '-DgroupId=com.oracle', '-DartifactId=truffle-dsl-processor', '-Dversion=' + graal_version('SNAPSHOT'), '-Dpackaging=jar', '-Dfile=build/truffle-dsl-processor.jar']) + for name in ['TRUFFLE', 'TRUFFLE-DSL-PROCESSOR']: + mx.archive(["@" + name]) + path = mx._dists[name].path + mx.run(['mvn', 'install:install-file', '-DgroupId=com.oracle', '-DartifactId=' + name.lower(), '-Dversion=' + graal_version('SNAPSHOT'), '-Dpackaging=jar', '-Dfile=' + path]) def c1visualizer(args): """run the Cl Compiler Visualizer"""