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