Mercurial > hg > truffle
diff mx/sanitycheck.py @ 4244:a69889e5a8a5
Made the DaCapo library be downloaded only on demand.
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Sat, 07 Jan 2012 23:59:54 +0100 |
parents | 394424b7df1a |
children | 063ea022532c |
line wrap: on
line diff
--- a/mx/sanitycheck.py Sat Jan 07 23:59:23 2012 +0100 +++ b/mx/sanitycheck.py Sat Jan 07 23:59:54 2012 +0100 @@ -102,7 +102,11 @@ def getDacapo(name, n, dacapoArgs=[]): dacapo = mx.get_env('DACAPO_CP') if dacapo is None: - dacapo = commands._graal_home + r'/lib/dacapo-9.12-bach.jar' + l = mx.library('DACAPO', False) + if l is not None: + dacapo = l.get_path(True) + else: + mx.abort('DaCapo 9.12 jar file must be specified with DACAPO_CP environment variable or as DACAPO library') if not isfile(dacapo) or not dacapo.endswith('.jar'): mx.abort('Specified DaCapo jar file does not exist or is not a jar file: ' + dacapo)