From 5b80d947ccf335d279be7a77bf2cea147f93f23a Mon Sep 17 00:00:00 2001 From: Lan Xia Date: Fri, 22 Nov 2024 10:18:08 -0500 Subject: [PATCH] Revert "Use tools.jar from java.home/lib directory (#140)" (#141) This reverts commit c859a78bf7b10e0306303cd1b5e169bc36c77045. --- stf.build/include/top.xml | 6 +++--- .../stf/environment/StfEnvironmentCore.java | 12 ------------ 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/stf.build/include/top.xml b/stf.build/include/top.xml index 43ce102..f0f9f12 100644 --- a/stf.build/include/top.xml +++ b/stf.build/include/top.xml @@ -132,7 +132,7 @@ limitations under the License. - + @@ -332,9 +332,9 @@ limitations under the License. --> - + - + diff --git a/stf.core/src/stf.core/net/adoptopenjdk/stf/environment/StfEnvironmentCore.java b/stf.core/src/stf.core/net/adoptopenjdk/stf/environment/StfEnvironmentCore.java index 23514ba..5935ba9 100644 --- a/stf.core/src/stf.core/net/adoptopenjdk/stf/environment/StfEnvironmentCore.java +++ b/stf.core/src/stf.core/net/adoptopenjdk/stf/environment/StfEnvironmentCore.java @@ -94,18 +94,6 @@ public StfEnvironmentCore(ArrayList propertyFileDetails, Ar this.testRoots.add(defaultTestRoot); invocationProperties.put(Stf.ARG_TEST_ROOT.getName(), defaultTestRoot.getSpec()); } - - try { - String javaHome = System.getProperty("java.home"); - File javaLibDir = new File(javaHome, "../lib"); - if (javaLibDir.exists() && javaLibDir.isDirectory()) { - this.testRoots.add(new DirectoryRef(javaLibDir.getCanonicalPath())); - } else { - System.out.println("Java lib directory does not exist: " + javaLibDir.getCanonicalPath()); - } - } catch (IOException e) { - throw new RuntimeException("Failed to add Java lib directory to test roots", e); - } // Work out where the prereqs are if (!getProperty(Stf.ARG_SYSTEMTEST_PREREQS).isEmpty()) {