src/share/classes/com/sun/tools/javadoc/DocEnv.java

changeset 2169
667843bd2193
parent 1998
b25e387481dc
child 2201
ef44a2971cb1
     1.1 --- a/src/share/classes/com/sun/tools/javadoc/DocEnv.java	Thu Oct 24 01:27:10 2013 -0400
     1.2 +++ b/src/share/classes/com/sun/tools/javadoc/DocEnv.java	Thu Oct 24 11:22:50 2013 -0700
     1.3 @@ -800,7 +800,7 @@
     1.4          return result;
     1.5      }
     1.6  
     1.7 -    void initDoclint(Collection<String> opts) {
     1.8 +    void initDoclint(Collection<String> opts, Collection<String> customTagNames) {
     1.9          ArrayList<String> doclintOpts = new ArrayList<String>();
    1.10  
    1.11          for (String opt: opts) {
    1.12 @@ -814,6 +814,15 @@
    1.13              return;
    1.14          }
    1.15  
    1.16 +        String sep = "";
    1.17 +        StringBuilder customTags = new StringBuilder();
    1.18 +        for (String customTag : customTagNames) {
    1.19 +            customTags.append(sep);
    1.20 +            customTags.append(customTag);
    1.21 +            sep = DocLint.TAGS_SEPARATOR;
    1.22 +        }
    1.23 +        doclintOpts.add(DocLint.XCUSTOM_TAGS_PREFIX + customTags.toString());
    1.24 +
    1.25          JavacTask t = BasicJavacTask.instance(context);
    1.26          doclint = new DocLint();
    1.27          // standard doclet normally generates H1, H2

mercurial