Mercurial > hg > graal-jvmci-8
comparison mx/commands.py @ 4257:32b8274f52ad
Made 'mx ideinit' resolve library dependencies eagerly as well as put absolute paths into the generated Eclipse project configurations.
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 10 Jan 2012 23:49:13 +0100 |
parents | 67e88b7624d5 |
children | ffd5ce8fc736 |
comparison
equal
deleted
inserted
replaced
4256:81dc77ed0695 | 4257:32b8274f52ad |
---|---|
375 elif hasattr(dep, 'eclipse.project'): | 375 elif hasattr(dep, 'eclipse.project'): |
376 println(out, '\t<classpathentry combineaccessrules="false" exported="true" kind="src" path="/' + getattr(dep, 'eclipse.project') + '"/>') | 376 println(out, '\t<classpathentry combineaccessrules="false" exported="true" kind="src" path="/' + getattr(dep, 'eclipse.project') + '"/>') |
377 else: | 377 else: |
378 path = dep.path | 378 path = dep.path |
379 if dep.mustExist: | 379 if dep.mustExist: |
380 dep.get_path(resolve=True) | |
380 if isabs(path): | 381 if isabs(path): |
381 println(out, '\t<classpathentry exported="true" kind="lib" path="' + path + '"/>') | 382 println(out, '\t<classpathentry exported="true" kind="lib" path="' + path + '"/>') |
382 else: | 383 else: |
383 println(out, '\t<classpathentry exported="true" kind="lib" path="/' + path + '"/>') | 384 println(out, '\t<classpathentry exported="true" kind="lib" path="' + join(_graal_home, path) + '"/>') |
384 else: | 385 else: |
385 println(out, '\t<classpathentry combineaccessrules="false" exported="true" kind="src" path="/' + dep.name + '"/>') | 386 println(out, '\t<classpathentry combineaccessrules="false" exported="true" kind="src" path="/' + dep.name + '"/>') |
386 | 387 |
387 println(out, '\t<classpathentry kind="output" path="' + getattr(p, 'eclipse.output', 'bin') + '"/>') | 388 println(out, '\t<classpathentry kind="output" path="' + getattr(p, 'eclipse.output', 'bin') + '"/>') |
388 println(out, '</classpath>') | 389 println(out, '</classpath>') |