8061293: Update javax/xml tests to remove references of jre dir
Reviewed-by: lancea, mkos
--- a/jdk/test/javax/xml/ws/8033113/WsImportTest.java Wed Jul 05 20:24:25 2017 +0200
+++ b/jdk/test/javax/xml/ws/8033113/WsImportTest.java Fri Mar 13 15:50:39 2015 +0300
@@ -140,9 +140,6 @@
private static String getWsImport() {
String javaHome = System.getProperty("java.home");
- if (javaHome.endsWith("jre")) {
- javaHome = new File(javaHome).getParent();
- }
String wsimport = javaHome + File.separator + "bin" + File.separator + "wsimport";
if (System.getProperty("os.name").startsWith("Windows")) {
wsimport = wsimport.concat(".exe");
--- a/jdk/test/javax/xml/ws/8046817/GenerateEnumSchema.java Wed Jul 05 20:24:25 2017 +0200
+++ b/jdk/test/javax/xml/ws/8046817/GenerateEnumSchema.java Fri Mar 13 15:50:39 2015 +0300
@@ -86,9 +86,6 @@
private static String getSchemagen() {
String javaHome = System.getProperty("java.home");
- if (javaHome.endsWith("jre")) {
- javaHome = new File(javaHome).getParent();
- }
String schemagen = javaHome + File.separator + "bin" + File.separator + "schemagen";
if (System.getProperty("os.name").startsWith("Windows")) {
schemagen = schemagen.concat(".exe");
--- a/jdk/test/javax/xml/ws/clientjar/TestWsImport.java Wed Jul 05 20:24:25 2017 +0200
+++ b/jdk/test/javax/xml/ws/clientjar/TestWsImport.java Fri Mar 13 15:50:39 2015 +0300
@@ -55,9 +55,6 @@
public static void main(String[] args) throws IOException {
String javaHome = System.getProperty("java.home");
- if (javaHome.endsWith("jre")) {
- javaHome = new File(javaHome).getParent();
- }
String wsimport = javaHome + File.separator + "bin" + File.separator + "wsimport";
if (System.getProperty("os.name").startsWith("Windows")) {
wsimport = wsimport.concat(".exe");
--- a/jdk/test/javax/xml/ws/ebcdic/WsImportTest.java Wed Jul 05 20:24:25 2017 +0200
+++ b/jdk/test/javax/xml/ws/ebcdic/WsImportTest.java Fri Mar 13 15:50:39 2015 +0300
@@ -133,9 +133,6 @@
private static String getWsImport() {
String javaHome = System.getProperty("java.home");
- if (javaHome.endsWith("jre")) {
- javaHome = new File(javaHome).getParent();
- }
String wsimport = javaHome + File.separator + "bin" + File.separator + "wsimport";
if (System.getProperty("os.name").startsWith("Windows")) {
wsimport = wsimport.concat(".exe");