langtools/src/share/classes/com/sun/tools/doclets/formats/html/ConfigurationImpl.java
changeset 22153 f9f06fcca59d
parent 21888 568c5da9f16b
child 22159 682da512ec17
equal deleted inserted replaced
22152:aec1999bb1fa 22153:f9f06fcca59d
    35 import com.sun.tools.doclets.internal.toolkit.*;
    35 import com.sun.tools.doclets.internal.toolkit.*;
    36 import com.sun.tools.doclets.internal.toolkit.util.*;
    36 import com.sun.tools.doclets.internal.toolkit.util.*;
    37 import com.sun.tools.doclint.DocLint;
    37 import com.sun.tools.doclint.DocLint;
    38 import com.sun.tools.javac.file.JavacFileManager;
    38 import com.sun.tools.javac.file.JavacFileManager;
    39 import com.sun.tools.javac.util.Context;
    39 import com.sun.tools.javac.util.Context;
       
    40 import com.sun.tools.javac.util.StringUtils;
    40 import com.sun.tools.javadoc.RootDocImpl;
    41 import com.sun.tools.javadoc.RootDocImpl;
    41 
    42 
    42 /**
    43 /**
    43  * Configure the output based on the command line options.
    44  * Configure the output based on the command line options.
    44  * <p>
    45  * <p>
   235      */
   236      */
   236     @Override
   237     @Override
   237     public void setSpecificDocletOptions(String[][] options) {
   238     public void setSpecificDocletOptions(String[][] options) {
   238         for (int oi = 0; oi < options.length; ++oi) {
   239         for (int oi = 0; oi < options.length; ++oi) {
   239             String[] os = options[oi];
   240             String[] os = options[oi];
   240             String opt = os[0].toLowerCase();
   241             String opt = StringUtils.toLowerCase(os[0]);
   241             if (opt.equals("-footer")) {
   242             if (opt.equals("-footer")) {
   242                 footer = os[1];
   243                 footer = os[1];
   243             } else if (opt.equals("-header")) {
   244             } else if (opt.equals("-header")) {
   244                 header = os[1];
   245                 header = os[1];
   245             } else if (opt.equals("-packagesheader")) {
   246             } else if (opt.equals("-packagesheader")) {
   323         int result = -1;
   324         int result = -1;
   324         if ((result = super.optionLength(option)) > 0) {
   325         if ((result = super.optionLength(option)) > 0) {
   325             return result;
   326             return result;
   326         }
   327         }
   327         // otherwise look for the options we have added
   328         // otherwise look for the options we have added
   328         option = option.toLowerCase();
   329         option = StringUtils.toLowerCase(option);
   329         if (option.equals("-nodeprecatedlist") ||
   330         if (option.equals("-nodeprecatedlist") ||
   330             option.equals("-noindex") ||
   331             option.equals("-noindex") ||
   331             option.equals("-notree") ||
   332             option.equals("-notree") ||
   332             option.equals("-nohelp") ||
   333             option.equals("-nohelp") ||
   333             option.equals("-splitindex") ||
   334             option.equals("-splitindex") ||
   387             return false;
   388             return false;
   388         }
   389         }
   389         // otherwise look at our options
   390         // otherwise look at our options
   390         for (int oi = 0; oi < options.length; ++oi) {
   391         for (int oi = 0; oi < options.length; ++oi) {
   391             String[] os = options[oi];
   392             String[] os = options[oi];
   392             String opt = os[0].toLowerCase();
   393             String opt = StringUtils.toLowerCase(os[0]);
   393             if (opt.equals("-helpfile")) {
   394             if (opt.equals("-helpfile")) {
   394                 if (nohelp == true) {
   395                 if (nohelp == true) {
   395                     reporter.printError(getText("doclet.Option_conflict",
   396                     reporter.printError(getText("doclet.Option_conflict",
   396                         "-helpfile", "-nohelp"));
   397                         "-helpfile", "-nohelp"));
   397                     return false;
   398                     return false;