60 * a version number instead of a date. |
60 * a version number instead of a date. |
61 */ |
61 */ |
62 public static final String BUILD_DATE = System.getProperty("java.version"); |
62 public static final String BUILD_DATE = System.getProperty("java.version"); |
63 |
63 |
64 /** |
64 /** |
65 * The name of the constant values file. |
|
66 */ |
|
67 public static final String CONSTANTS_FILE_NAME = "constant-values.html"; |
|
68 |
|
69 /** |
|
70 * Argument for command line option "-header". |
65 * Argument for command line option "-header". |
71 */ |
66 */ |
72 public String header = ""; |
67 public String header = ""; |
73 |
68 |
74 /** |
69 /** |
445 protected void setTopFile(RootDoc root) { |
440 protected void setTopFile(RootDoc root) { |
446 if (!checkForDeprecation(root)) { |
441 if (!checkForDeprecation(root)) { |
447 return; |
442 return; |
448 } |
443 } |
449 if (createoverview) { |
444 if (createoverview) { |
450 topFile = "overview-summary.html"; |
445 topFile = DocPaths.OVERVIEW_SUMMARY; |
451 } else { |
446 } else { |
452 if (packages.length == 1 && packages[0].name().equals("")) { |
447 if (packages.length == 1 && packages[0].name().equals("")) { |
453 if (root.classes().length > 0) { |
448 if (root.classes().length > 0) { |
454 ClassDoc[] classarr = root.classes(); |
449 ClassDoc[] classarr = root.classes(); |
455 Arrays.sort(classarr); |
450 Arrays.sort(classarr); |
456 ClassDoc cd = getValidClass(classarr); |
451 ClassDoc cd = getValidClass(classarr); |
457 topFile = DirectoryManager.getPathToClass(cd); |
452 topFile = DocPath.forClass(cd); |
458 } |
453 } |
459 } else { |
454 } else { |
460 topFile = DirectoryManager.getPathToPackage(packages[0], |
455 topFile = DocPath.forPackage(packages[0]).resolve(DocPaths.PACKAGE_SUMMARY); |
461 "package-summary.html"); |
|
462 } |
456 } |
463 } |
457 } |
464 } |
458 } |
465 |
459 |
466 protected ClassDoc getValidClass(ClassDoc[] classarr) { |
460 protected ClassDoc getValidClass(ClassDoc[] classarr) { |