public static void main(String[] args) { // run javadoc on package pkg if (com.sun.tools.javadoc.Main.execute( "javadoc", "CompletionFailure", CompletionFailure.class.getClassLoader(), new String[] {"pkg"}) != 0) throw new Error(); }
public static void main(String[] args) { String thisFile = "" + new java.io.File(System.getProperty("test.src", "."), "BreakIteratorWarning.java"); if (com.sun.tools.javadoc.Main.execute( "javadoc", "BreakIteratorWarning", BreakIteratorWarning.class.getClassLoader(), new String[] {"-Xwerror", thisFile}) != 0) throw new Error("Javadoc encountered warnings or errors."); }
/** Run javadoc */ public static void runJavadoc(String[] javadocArgs) { if (com.sun.tools.javadoc.Main.execute(javadocArgs) != 0) { throw new Error("Javadoc failed to execute"); } }