test/jdk/tools/jpackage/createappimage/macosx/JPackageCreateAppImageBundleNameTest.java
equal
deleted
inserted
replaced
103 System.out.println("Validating bundleName: " + bundleName); |
103 System.out.println("Validating bundleName: " + bundleName); |
104 |
104 |
105 File infoPList = new File(OUTPUT + File.separator + APP_NAME + ".app" + |
105 File infoPList = new File(OUTPUT + File.separator + APP_NAME + ".app" + |
106 File.separator + "Contents" + File.separator + "Info.plist"); |
106 File.separator + "Contents" + File.separator + "Info.plist"); |
107 |
107 |
108 DocumentBuilder b = DocumentBuilderFactory.newDefaultInstance() |
108 DocumentBuilderFactory dbf = DocumentBuilderFactory.newDefaultInstance(); |
109 .newDocumentBuilder(); |
109 dbf.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false); |
|
110 DocumentBuilder b = dbf.newDocumentBuilder(); |
110 org.w3c.dom.Document doc = b.parse(new FileInputStream( |
111 org.w3c.dom.Document doc = b.parse(new FileInputStream( |
111 infoPList.getAbsolutePath())); |
112 infoPList.getAbsolutePath())); |
112 |
113 |
113 XPath xPath = XPathFactory.newInstance().newXPath(); |
114 XPath xPath = XPathFactory.newInstance().newXPath(); |
114 // Query for the value of <string> element preceding <key> element |
115 // Query for the value of <string> element preceding <key> element |