changeset 22289:26e2a05f8d95

fixed mx_jvmci_makefile to use mx.classpath_entries()
author Doug Simon <doug.simon@oracle.com>
date Thu, 23 Jul 2015 15:43:13 +0200
parents 240347540e30
children 5425cd72bd3a
files make/jvmci.make mx.jvmci/mx_jvmci_makefile.py mx.jvmci/suite.py
diffstat 3 files changed, 4 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/make/jvmci.make	Thu Jul 23 15:21:26 2015 +0200
+++ b/make/jvmci.make	Thu Jul 23 15:43:13 2015 +0200
@@ -168,7 +168,7 @@
 
 JVMCI_HOTSPOT_JAR = $(TARGET)/jvmci-hotspot.jar
 
-JVMCI_HOTSPOT_DEP_JARS = $(TARGET)/jvmci-api.jar
+JVMCI_HOTSPOT_DEP_JARS = $(TARGET)/jvmci-service.jar $(TARGET)/jvmci-api.jar
 
 EXPORTED_FILES += $(JVMCI_HOTSPOT_JAR)
 
--- a/mx.jvmci/mx_jvmci_makefile.py	Thu Jul 23 15:21:26 2015 +0200
+++ b/mx.jvmci/mx_jvmci_makefile.py	Thu Jul 23 15:43:13 2015 +0200
@@ -80,13 +80,9 @@
     resources = []
     projects = [p for p in dist.archived_deps() if p.isJavaProject()]
     targetPathPrefix = "$(TARGET)/"
-    libraryDeps = [path_dist_relative(l.get_path(False)) for l in [l for l in dist.archived_deps() if l.isLibrary()]]
+    annotationProcessorDeps = set()
 
-    annotationProcessorDeps = set()
-    distDeps = [dep for dep in dist.deps if dep.isDistribution()]
-
-    classPath = [targetPathPrefix + os.path.basename(d.path) for d in distDeps] + libraryDeps \
-        + [path_dist_relative(exclLib.path) for exclLib in dist.excludedLibs]
+    classPath = [targetPathPrefix + os.path.basename(e.path) for e in mx.classpath_entries(dist, includeSelf=False, preferProjects=False)]
     for p in projects:
         projectDir = path_dist_relative(p.dir)
         annotationProcessorDeps.update(p.declaredAnnotationProcessors)
@@ -97,11 +93,9 @@
                 resources.append(metaInf)
 
     sourceLines = sourcesVariableName + " = " + ("\n" + sourcesVariableName + " += ").join(sources)
-    apPaths = []
     apDistNames = []
     apDistVariableNames = []
     for apd in sorted(annotationProcessorDeps):
-        apPaths.append(path_dist_relative(apd.path))
         apDistNames.append(apd.name)
         apDistVariableNames.append("$(" + apd.name + "_JAR)")
     shouldExport = dist in jdkDeployedDists
--- a/mx.jvmci/suite.py	Thu Jul 23 15:21:26 2015 +0200
+++ b/mx.jvmci/suite.py	Thu Jul 23 15:43:13 2015 +0200
@@ -342,6 +342,7 @@
         "jdk.internal.jvmci.hotspot.jfr",
       ],
       "distDependencies" : [
+        "JVMCI_SERVICE",
         "JVMCI_API",
       ],
     },