Mercurial > hg > truffle
comparison mxtool/mx.py @ 21613:60154926b513
replaced use of javap with a small Java utility for refining service class list to only those implementing com.oracle.jvmci.service.Service
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Sun, 31 May 2015 12:32:15 +0200 |
parents | 28cbfacd0518 |
children | 0a2fc09f6ed6 |
comparison
equal
deleted
inserted
replaced
21612:f2a6088ddebc | 21613:60154926b513 |
---|---|
5432 _show_section('libraries', s.libs) | 5432 _show_section('libraries', s.libs) |
5433 _show_section('jrelibraries', s.jreLibs) | 5433 _show_section('jrelibraries', s.jreLibs) |
5434 _show_section('projects', s.projects) | 5434 _show_section('projects', s.projects) |
5435 _show_section('distributions', s.dists) | 5435 _show_section('distributions', s.dists) |
5436 | 5436 |
5437 def _compile_mx_class(javaClassName, classpath=None, jdk=None): | 5437 def _compile_mx_class(javaClassName, classpath=None, jdk=None, myDir=None): |
5438 myDir = dirname(__file__) | 5438 myDir = dirname(__file__) if myDir is None else myDir |
5439 binDir = join(myDir, 'bin' if not jdk else '.jdk' + str(jdk.version)) | 5439 binDir = join(myDir, 'bin' if not jdk else '.jdk' + str(jdk.version)) |
5440 javaSource = join(myDir, javaClassName + '.java') | 5440 javaSource = join(myDir, javaClassName + '.java') |
5441 javaClass = join(binDir, javaClassName + '.class') | 5441 javaClass = join(binDir, javaClassName + '.class') |
5442 if not exists(javaClass) or getmtime(javaClass) < getmtime(javaSource): | 5442 if not exists(javaClass) or getmtime(javaClass) < getmtime(javaSource): |
5443 if not exists(binDir): | 5443 if not exists(binDir): |