You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2021/05/02 15:54:11 UTC

[tomee-tck] 05/06: Add rt.jar (more dynamic)

This is an automated email from the ASF dual-hosted git repository.

dblevins pushed a commit to branch jakartaee9-tck
in repository https://gitbox.apache.org/repos/asf/tomee-tck.git

commit 2c92bc2cc682114e8a3ed0ba5113b838f5a4e1a1
Author: David Blevins <da...@gmail.com>
AuthorDate: Sun May 2 08:53:34 2021 -0700

    Add rt.jar (more dynamic)
---
 src/test/script/openejb/tck/commands/CommandSupport.groovy | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/test/script/openejb/tck/commands/CommandSupport.groovy b/src/test/script/openejb/tck/commands/CommandSupport.groovy
index 1649ed3..38c0866 100644
--- a/src/test/script/openejb/tck/commands/CommandSupport.groovy
+++ b/src/test/script/openejb/tck/commands/CommandSupport.groovy
@@ -210,7 +210,7 @@ abstract class CommandSupport {
         builder.append("servlet-api.jar")
         builder.append("taglibs-shade-*.jar")
         builder.append("websocket-api.jar")
-        builder.directory = "/Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents//Home/jre/lib/"
+        builder.directory = javaHome() +"/lib/"
         builder.append("rt.jar")
         builder.getPath("openejb.jee.classes")
 
@@ -303,6 +303,11 @@ abstract class CommandSupport {
         builder.getPath("openejb.embedded.classpath")
     }
 
+    private String javaHome() {
+        def file = new File(System.getProperty("java.home"))
+        return file.getAbsolutePath();
+    }
+
     def selectTests() {
         def builder = new TestListBuilder(this)
         return builder.getTests()