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