Mercurial > hg > graal-compiler
comparison mx/mx_graal.py @ 15819:2460aed6c899
mx: add support for setting a main class in distributions
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Wed, 21 May 2014 15:11:14 +0200 |
parents | dffc37fa7157 |
children | f0127716b881 |
comparison
equal
deleted
inserted
replaced
15818:718034423138 | 15819:2460aed6c899 |
---|---|
1540 for name in deps: | 1540 for name in deps: |
1541 if not mx.project(name, fatalIfMissing=False): | 1541 if not mx.project(name, fatalIfMissing=False): |
1542 if not mx.library(name, fatalIfMissing=False): | 1542 if not mx.library(name, fatalIfMissing=False): |
1543 mx.log('Skipping ' + groupId + '.' + artifactId + '.jar as ' + name + ' cannot be resolved') | 1543 mx.log('Skipping ' + groupId + '.' + artifactId + '.jar as ' + name + ' cannot be resolved') |
1544 return | 1544 return |
1545 d = mx.Distribution(graalSuite, name=artifactId, path=path, sourcesPath=path, deps=deps, excludedDependencies=[], distDependencies=[]) | 1545 d = mx.Distribution(graalSuite, name=artifactId, path=path, sourcesPath=path, deps=deps, mainClass=None, excludedDependencies=[], distDependencies=[]) |
1546 d.make_archive() | 1546 d.make_archive() |
1547 cmd = ['mvn', 'install:install-file', '-DgroupId=' + groupId, '-DartifactId=' + artifactId, | 1547 cmd = ['mvn', 'install:install-file', '-DgroupId=' + groupId, '-DartifactId=' + artifactId, |
1548 '-Dversion=1.0-SNAPSHOT', '-Dpackaging=jar', '-Dfile=' + d.path] | 1548 '-Dversion=1.0-SNAPSHOT', '-Dpackaging=jar', '-Dfile=' + d.path] |
1549 if not mx._opts.verbose: | 1549 if not mx._opts.verbose: |
1550 cmd.append('-q') | 1550 cmd.append('-q') |