Mercurial > hg > graal-jvmci-8
comparison mx/mx_graal.py @ 16499:a0f3688ce052
findbugs: fix URLs in mx helper
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Fri, 11 Jul 2014 16:48:59 +0200 |
parents | 680f52926754 |
children | 89be7c4db12c |
comparison
equal
deleted
inserted
replaced
16498:b11f1c7cf6a5 | 16499:a0f3688ce052 |
---|---|
2053 findbugsLib = join(_graal_home, 'lib', 'findbugs-3.0.0') | 2053 findbugsLib = join(_graal_home, 'lib', 'findbugs-3.0.0') |
2054 if not exists(findbugsLib): | 2054 if not exists(findbugsLib): |
2055 tmp = tempfile.mkdtemp(prefix='findbugs-download-tmp', dir=_graal_home) | 2055 tmp = tempfile.mkdtemp(prefix='findbugs-download-tmp', dir=_graal_home) |
2056 try: | 2056 try: |
2057 findbugsDist = join(tmp, 'findbugs.zip') | 2057 findbugsDist = join(tmp, 'findbugs.zip') |
2058 mx.download(findbugsDist, ['http://sourceforge.net/projects/findbugs/files/findbugs/3.0.0/findbugs-3.0.0-dev-20131204-e3cbbd5.zip']) | 2058 mx.download(findbugsDist, ['http://lafo.ssw.uni-linz.ac.at/graal-external-deps/findbugs-3.0.0.zip', 'http://sourceforge.net/projects/findbugs/files/findbugs/3.0.0/findbugs-3.0.0.zip']) |
2059 with zipfile.ZipFile(findbugsDist) as zf: | 2059 with zipfile.ZipFile(findbugsDist) as zf: |
2060 candidates = [e for e in zf.namelist() if e.endswith('/lib/findbugs.jar')] | 2060 candidates = [e for e in zf.namelist() if e.endswith('/lib/findbugs.jar')] |
2061 assert len(candidates) == 1, candidates | 2061 assert len(candidates) == 1, candidates |
2062 libDirInZip = os.path.dirname(candidates[0]) | 2062 libDirInZip = os.path.dirname(candidates[0]) |
2063 zf.extractall(tmp) | 2063 zf.extractall(tmp) |