langtools/test/tools/javadoc/sourceOnly/p/SourceOnly.java
changeset 1475 19c0851667ca
parent 10 06bc494ca11e
child 1652 1324f96f3883
equal deleted inserted replaced
1474:b808d0ebfe20 1475:19c0851667ca
    29 public class SourceOnly extends com.sun.javadoc.Doclet
    29 public class SourceOnly extends com.sun.javadoc.Doclet
    30 {
    30 {
    31     public static void main(String[] args) {
    31     public static void main(String[] args) {
    32         // run javadoc on package p
    32         // run javadoc on package p
    33         int result = com.sun.tools.javadoc.Main.
    33         int result = com.sun.tools.javadoc.Main.
    34             execute("javadoc", "p.SourceOnly", new String[] {"p"});
    34             execute("javadoc", "p.SourceOnly", SourceOnly.class.getClassLoader(), new String[] {"p"});
    35         if (result != 0)
    35         if (result != 0)
    36             throw new Error();
    36             throw new Error();
    37     }
    37     }
    38 
    38 
    39     public static boolean start(com.sun.javadoc.RootDoc root) {
    39     public static boolean start(com.sun.javadoc.RootDoc root) {