test/jdk/tools/jpackage/createappimage/macosx/JPackageCreateAppImageBundleIdentifierTest.java
branchJDK-8200758-branch
changeset 57408 f4a3f1dd2c02
parent 57405 539d8b3f9e1e
child 57414 6eda749d3117
equal deleted inserted replaced
57407:2c14fbeff1dc 57408:f4a3f1dd2c02
   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