Mercurial > hg > truffle
comparison mx.truffle/mx_truffle.py @ 21981:da5e694d2b3c
Using groupId=com.oracle.[suite.name] when deploying the artifacts. Iterating thru all distributions (except ap ones). Using name of the JAR file as artifactId.
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Fri, 26 Jun 2015 14:09:56 +0200 |
parents | 1ecffe20e460 |
children | de52ea7de779 |
comparison
equal
deleted
inserted
replaced
21980:cf1503da2456 | 21981:da5e694d2b3c |
---|---|
1204 if mx.run(['ant', '-f', mx._cygpathU2W(join(_graal_home, 'src', 'share', 'tools', 'IdealGraphVisualizer', 'build.xml')), '-l', mx._cygpathU2W(fp.name), 'run'], env=env, nonZeroIsFatal=False): | 1204 if mx.run(['ant', '-f', mx._cygpathU2W(join(_graal_home, 'src', 'share', 'tools', 'IdealGraphVisualizer', 'build.xml')), '-l', mx._cygpathU2W(fp.name), 'run'], env=env, nonZeroIsFatal=False): |
1205 mx.abort("IGV ant build & launch failed. Check '" + logFile + "'. You can also try to delete 'src/share/tools/IdealGraphVisualizer/nbplatform'.") | 1205 mx.abort("IGV ant build & launch failed. Check '" + logFile + "'. You can also try to delete 'src/share/tools/IdealGraphVisualizer/nbplatform'.") |
1206 | 1206 |
1207 def maven_install_truffle(args): | 1207 def maven_install_truffle(args): |
1208 """install Truffle into your local Maven repository""" | 1208 """install Truffle into your local Maven repository""" |
1209 for name in ['TRUFFLE', 'TRUFFLE_TCK', 'TRUFFLE_DSL_PROCESSOR', 'TRUFFLE_SL']: | 1209 for name in mx._dists: |
1210 dist = mx._dists[name] | |
1211 if dist.isProcessorDistribution: | |
1212 continue | |
1210 mx.archive(["@" + name]) | 1213 mx.archive(["@" + name]) |
1211 path = mx._dists[name].path | 1214 path = dist.path |
1212 mx.run(['mvn', 'install:install-file', '-DgroupId=com.oracle', '-DartifactId=' + name.lower(), '-Dversion=' + graal_version('SNAPSHOT'), '-Dpackaging=jar', '-Dfile=' + path]) | 1215 slash = path.rfind('/') |
1216 dot = path.rfind('.') | |
1217 if dot <= slash: | |
1218 raise Exception('Dot should be after / in ' + path) | |
1219 artifactId = path[slash + 1: dot] | |
1220 mx.run(['mvn', 'install:install-file', '-DgroupId=com.oracle.' + dist.suite.name, '-DartifactId=' + artifactId, '-Dversion=' + graal_version('SNAPSHOT'), '-Dpackaging=jar', '-Dfile=' + path]) | |
1213 | 1221 |
1214 def c1visualizer(args): | 1222 def c1visualizer(args): |
1215 """run the Cl Compiler Visualizer""" | 1223 """run the Cl Compiler Visualizer""" |
1216 libpath = join(_graal_home, 'lib') | 1224 libpath = join(_graal_home, 'lib') |
1217 if mx.get_os() == 'windows': | 1225 if mx.get_os() == 'windows': |