8061293: Update javax/xml tests to remove references of jre dir

Reviewed-by: lancea, mkos
This commit is contained in:
Frank Yuan 2015-03-13 15:50:39 +03:00
parent 63923c6c41
commit 827d9d3928
4 changed files with 0 additions and 12 deletions

View File

@ -140,9 +140,6 @@ public class WsImportTest {
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");

View File

@ -86,9 +86,6 @@ public class GenerateEnumSchema {
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");

View File

@ -55,9 +55,6 @@ public class TestWsImport {
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");

View File

@ -133,9 +133,6 @@ public class WsImportTest {
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");