From 02075db6e26a2e54eec65786ec9b4b2aa429cc6b Mon Sep 17 00:00:00 2001
From: Mick Jordan <mick.jordan@oracle.com>
Date: Wed, 24 Aug 2016 07:36:05 -0700
Subject: [PATCH] release dist: fix use of relative path

---
 mx.fastr/mx_fastr.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mx.fastr/mx_fastr.py b/mx.fastr/mx_fastr.py
index a17454de48..672b3a4f53 100644
--- a/mx.fastr/mx_fastr.py
+++ b/mx.fastr/mx_fastr.py
@@ -583,10 +583,10 @@ class ReleaseBuildTask(mx.NativeBuildTask):
         # visitor to collect/copy all the classes/jar files needed by the launchers
         def dep_visit(dep, edge):
             if isinstance(dep, mx.JARDistribution):
-                shutil.copy(dep.path, jars_dir)
+                shutil.copy(join(dep.suite.dir, dep.path), jars_dir)
             elif isinstance(dep, mx.Library):
                 jar_name = dep.name.lower() + '.jar'
-                shutil.copyfile(dep.path, join(jars_dir, jar_name))
+                shutil.copyfile(join(dep.suite.dir, dep.path), join(jars_dir, jar_name))
             elif isinstance(dep, mx.JavaProject):
                 if 'com.oracle.truffle.r' in dep.name:
                     classfiles_dir = dep.output_dir()
-- 
GitLab