Mercurial > hg > graal-compiler
changeset 14930:5c7718ae8c86
install graal.jar into local Maven repo if MAVEN_INSTALL_GRAAL_JAR environment variable is "true"
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 01 Apr 2014 22:48:07 +0200 |
parents | de31e0f56fe7 |
children | d45e8c306349 |
files | mx/mx_graal.py |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mx/mx_graal.py Tue Apr 01 22:46:52 2014 +0200 +++ b/mx/mx_graal.py Tue Apr 01 22:48:07 2014 +0200 @@ -403,6 +403,13 @@ def _installGraalJarInJdks(graalDist): graalJar = graalDist.path jdks = _jdksDir() + + m2Install = mx.get_env('MAVEN_INSTALL_GRAAL_JAR', None) + if m2Install and m2Install.lower() == 'true': + mx.run(['mvn', 'install:install-file', '-q', + '-Dfile=' + graalJar, '-DgroupId=com.oracle.graal', '-DartifactId=graal', + '-Dversion=1.0-SNAPSHOT', '-Dpackaging=jar']) + if exists(jdks): for e in os.listdir(jdks): jreLibDir = join(jdks, e, 'jre', 'lib') @@ -1343,7 +1350,7 @@ vmArgs, benchmarks = _extract_VM_args(args) jmhPath = mx.get_env('JMH_BENCHMARKS', None) if not jmhPath or not exists(jmhPath): - mx.abort("$JMH_BENCHMARKS not properly definied") + mx.abort("$JMH_BENCHMARKS not properly defined: " + str(jmhPath)) def _blackhole(x): mx.logv(x[:-1])