langtools/test/tools/javadoc/lib/Tester.java
changeset 1475 19c0851667ca
parent 10 06bc494ca11e
child 1652 1324f96f3883
equal deleted inserted replaced
1474:b808d0ebfe20 1475:19c0851667ca
    87     }
    87     }
    88 
    88 
    89     public void run() throws IOException {
    89     public void run() throws IOException {
    90         try {
    90         try {
    91             if (com.sun.tools.javadoc.Main.execute("javadoc",
    91             if (com.sun.tools.javadoc.Main.execute("javadoc",
    92                                                    docletName, args) != 0) {
    92                                                    docletName,
       
    93                                                    getClass().getClassLoader(),
       
    94                                                    args) != 0) {
    93                 throw new Error("Javadoc errors encountered.");
    95                 throw new Error("Javadoc errors encountered.");
    94             }
    96             }
    95             System.out.println("--> Output written to " + outputFile);
    97             System.out.println("--> Output written to " + outputFile);
    96         } finally {
    98         } finally {
    97             out.close();
    99             out.close();