Mercurial > hg > graal-compiler
diff mxtool/mx.py @ 15577:406a94c03ffa
truffle distrubtion: move dsl processor in a separated jar, such that it can be a build-time only dependency
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Fri, 09 May 2014 16:11:01 +0200 |
parents | 1f28c463e452 |
children | c3869fe3d917 |
line wrap: on
line diff
--- a/mxtool/mx.py Fri May 09 13:56:10 2014 +0200 +++ b/mxtool/mx.py Fri May 09 16:11:01 2014 +0200 @@ -62,7 +62,7 @@ A distribution is a jar or zip file containing the output from one or more Java projects. """ class Distribution: - def __init__(self, suite, name, path, sourcesPath, deps, excludedLibs): + def __init__(self, suite, name, path, sourcesPath, deps, excludedDependencies): self.suite = suite self.name = name self.path = path.replace('/', os.sep) @@ -70,13 +70,13 @@ self.sourcesPath = _make_absolute(sourcesPath.replace('/', os.sep), suite.dir) if sourcesPath else None self.deps = deps self.update_listeners = set() - self.excludedLibs = excludedLibs + self.excludedDependencies = excludedDependencies def sorted_deps(self, includeLibs=False): try: - excl = [library(d) for d in self.excludedLibs] + excl = [dependency(d) for d in self.excludedDependencies] except SystemExit as e: - abort('invalid excluded library for {} distribution: {}'.format(self.name, e)) + abort('invalid excluded dependency for {} distribution: {}'.format(self.name, e)) return [d for d in sorted_deps(self.deps, includeLibs=includeLibs) if d not in excl] def __str__(self): @@ -748,8 +748,8 @@ path = attrs.pop('path') sourcesPath = attrs.pop('sourcesPath', None) deps = pop_list(attrs, 'dependencies') - exclLibs = pop_list(attrs, 'excludeLibs') - d = Distribution(self, name, path, sourcesPath, deps, exclLibs) + exclDeps = pop_list(attrs, 'exclude') + d = Distribution(self, name, path, sourcesPath, deps, exclDeps) d.__dict__.update(attrs) self.dists.append(d)