Mercurial > hg > truffle
diff mx/mx_graal.py @ 21708:6df25b1418be
moved com.oracle.asm.** to jvmci-util.jar (JBS:GRAAL-53)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 03 Jun 2015 18:06:44 +0200 |
parents | 729e6acde6c0 |
children | b5bbf03bc17a |
line wrap: on
line diff
--- a/mx/mx_graal.py Wed Jun 03 17:12:05 2015 +0200 +++ b/mx/mx_graal.py Wed Jun 03 18:06:44 2015 +0200 @@ -626,7 +626,11 @@ """ zf = zipfile.ZipFile(dist.path, 'r') graalClassfilePath = 'com/oracle/graal/api/runtime/Graal.class' - graalClassfile = zf.read(graalClassfilePath) + try: + graalClassfile = zf.read(graalClassfilePath) + except KeyError: + mx.log(graalClassfilePath + ' is not present in ' + dist.path) + return placeholder = '@@@@@@@@@@@@@@@@graal.version@@@@@@@@@@@@@@@@' placeholderLen = len(placeholder) versionSpec = '{:' + str(placeholderLen) + '}'