src/share/classes/com/sun/tools/doclets/internal/toolkit/AbstractDoclet.java

changeset 1383
b980e8e6aabf
parent 1372
78962d89f283
child 1410
bfec2a1cc869
equal deleted inserted replaced
1382:27f7952eea3c 1383:b980e8e6aabf
104 */ 104 */
105 public abstract Configuration configuration(); 105 public abstract Configuration configuration();
106 106
107 /** 107 /**
108 * Start the generation of files. Call generate methods in the individual 108 * Start the generation of files. Call generate methods in the individual
109 * writers, which will in turn genrate the documentation files. Call the 109 * writers, which will in turn generate the documentation files. Call the
110 * TreeWriter generation first to ensure the Class Hierarchy is built 110 * TreeWriter generation first to ensure the Class Hierarchy is built
111 * first and then can be used in the later generation. 111 * first and then can be used in the later generation.
112 * 112 *
113 * @see com.sun.javadoc.RootDoc 113 * @see com.sun.javadoc.RootDoc
114 */ 114 */
122 configuration.getDocletSpecificMsg().notice("doclet.build_version", 122 configuration.getDocletSpecificMsg().notice("doclet.build_version",
123 configuration.getDocletSpecificBuildDate()); 123 configuration.getDocletSpecificBuildDate());
124 ClassTree classtree = new ClassTree(configuration, configuration.nodeprecated); 124 ClassTree classtree = new ClassTree(configuration, configuration.nodeprecated);
125 125
126 generateClassFiles(root, classtree); 126 generateClassFiles(root, classtree);
127 if (configuration.sourcepath != null && configuration.sourcepath.length() > 0) { 127 Util.copyDocFiles(configuration, DocPaths.DOC_FILES);
128 StringTokenizer pathTokens = new StringTokenizer(configuration.sourcepath,
129 String.valueOf(File.pathSeparatorChar));
130 boolean first = true;
131 while(pathTokens.hasMoreTokens()){
132 Util.copyDocFiles(configuration,
133 new File(pathTokens.nextToken()),
134 DocPaths.DOC_FILES, first);
135 first = false;
136 }
137 }
138 128
139 PackageListWriter.generate(configuration); 129 PackageListWriter.generate(configuration);
140 generatePackageFiles(classtree); 130 generatePackageFiles(classtree);
141 131
142 generateOtherFiles(root, classtree); 132 generateOtherFiles(root, classtree);

mercurial