mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8006346: doclint should make allowance for headers generated by standard doclet
Reviewed-by: mcimadamore
This commit is contained in:
parent
059c4839bc
commit
84a50dc114
7 changed files with 102 additions and 4 deletions
|
@ -30,6 +30,7 @@ import java.io.IOException;
|
|||
import java.io.PrintWriter;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import javax.lang.model.element.Name;
|
||||
import javax.tools.StandardLocation;
|
||||
|
@ -72,6 +73,7 @@ public class DocLint implements Plugin {
|
|||
public static final String XMSGS_OPTION = "-Xmsgs";
|
||||
public static final String XMSGS_CUSTOM_PREFIX = "-Xmsgs:";
|
||||
private static final String STATS = "-stats";
|
||||
public static final String XIMPLICIT_HEADERS = "-XimplicitHeaders:";
|
||||
|
||||
// <editor-fold defaultstate="collapsed" desc="Command-line entry point">
|
||||
public static void main(String... args) {
|
||||
|
@ -289,6 +291,9 @@ public class DocLint implements Plugin {
|
|||
env.messages.setOptions(null);
|
||||
} else if (arg.startsWith(XMSGS_CUSTOM_PREFIX)) {
|
||||
env.messages.setOptions(arg.substring(arg.indexOf(":") + 1));
|
||||
} else if (arg.matches(XIMPLICIT_HEADERS + "[1-6]")) {
|
||||
char ch = arg.charAt(arg.length() - 1);
|
||||
env.setImplicitHeaders(Character.digit(ch, 10));
|
||||
} else
|
||||
throw new IllegalArgumentException(arg);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue