diff 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
line wrap: on
line diff
--- a/mxtool/mx.py	Sat May 30 14:31:16 2015 +0200
+++ b/mxtool/mx.py	Sun May 31 12:32:15 2015 +0200
@@ -5434,8 +5434,8 @@
         _show_section('projects', s.projects)
         _show_section('distributions', s.dists)
 
-def _compile_mx_class(javaClassName, classpath=None, jdk=None):
-    myDir = dirname(__file__)
+def _compile_mx_class(javaClassName, classpath=None, jdk=None, myDir=None):
+    myDir = dirname(__file__) if myDir is None else myDir
     binDir = join(myDir, 'bin' if not jdk else '.jdk' + str(jdk.version))
     javaSource = join(myDir, javaClassName + '.java')
     javaClass = join(binDir, javaClassName + '.class')