comparison src/main/groovy/org/ssdt_ohio/gradle/tasks/UserDoc.groovy @ 14:9de72de14ab3

USASR-1307: customize CSS and override class template
author Dave Smith <smith@nwoca.org>
date Tue, 10 Dec 2013 23:24:56 +0000
parents a628135958e7
children e3c55e83c9a4
comparison
equal deleted inserted replaced
13:a628135958e7 14:9de72de14ab3
1 package org.ssdt_ohio.gradle.tasks 1 package org.ssdt_ohio.gradle.tasks
2 2
3 import org.codehaus.groovy.tools.groovydoc.ClasspathResourceManager 3 import org.codehaus.groovy.tools.groovydoc.ClasspathResourceManager
4 import org.codehaus.groovy.tools.groovydoc.FileOutputTool 4 import org.codehaus.groovy.tools.groovydoc.FileOutputTool
5 import org.codehaus.groovy.tools.groovydoc.GroovyDocTool 5 import org.codehaus.groovy.tools.groovydoc.GroovyDocTool
6 import org.codehaus.groovy.tools.groovydoc.OutputTool
6 import org.codehaus.groovy.tools.groovydoc.gstringTemplates.GroovyDocTemplateInfo 7 import org.codehaus.groovy.tools.groovydoc.gstringTemplates.GroovyDocTemplateInfo
7 import org.gradle.api.InvalidUserDataException 8 import org.gradle.api.InvalidUserDataException
8 import org.gradle.api.file.FileCollection 9 import org.gradle.api.file.FileCollection
9 import org.gradle.api.file.FileVisitDetails 10 import org.gradle.api.file.FileVisitDetails
10 import org.gradle.api.internal.ClassPathRegistry 11 import org.gradle.api.internal.ClassPathRegistry
147 * 148 *
148 * @return an array of package templates, whereas each entry is resolved as classpath entry, defaults to 149 * @return an array of package templates, whereas each entry is resolved as classpath entry, defaults to
149 * {@link GroovyDocTemplateInfo#DEFAULT_PACKAGE_TEMPLATES}. 150 * {@link GroovyDocTemplateInfo#DEFAULT_PACKAGE_TEMPLATES}.
150 */ 151 */
151 protected String[] getPackageTemplates() { 152 protected String[] getPackageTemplates() {
152 return GroovyDocTemplateInfo.DEFAULT_PACKAGE_TEMPLATES; 153 return UserDocTemplateInfo.DEFAULT_PACKAGE_TEMPLATES;
153 } 154 }
154 155
155 /** 156 /**
156 * Creates and returns an array of doc template classpath entries. 157 * Creates and returns an array of doc template classpath entries.
157 * <p> 158 * <p>
159 * 160 *
160 * @return an array of doc templates, whereas each entry is resolved as classpath entry, defaults to 161 * @return an array of doc templates, whereas each entry is resolved as classpath entry, defaults to
161 * {@link GroovyDocTemplateInfo#DEFAULT_DOC_TEMPLATES}. 162 * {@link GroovyDocTemplateInfo#DEFAULT_DOC_TEMPLATES}.
162 */ 163 */
163 protected String[] getDocTemplates() { 164 protected String[] getDocTemplates() {
164 return GroovyDocTemplateInfo.DEFAULT_DOC_TEMPLATES; 165 return UserDocTemplateInfo.DEFAULT_DOC_TEMPLATES;
165 } 166 }
166 167
167 /** 168 /**
168 * Creates and returns an array of class template classpath entries. 169 * Creates and returns an array of class template classpath entries.
169 * <p> 170 * <p>
171 * 172 *
172 * @return an array of class templates, whereas each entry is resolved as classpath entry, defaults to 173 * @return an array of class templates, whereas each entry is resolved as classpath entry, defaults to
173 * {@link GroovyDocTemplateInfo#DEFAULT_CLASS_TEMPLATES}. 174 * {@link GroovyDocTemplateInfo#DEFAULT_CLASS_TEMPLATES}.
174 */ 175 */
175 protected String[] getClassTemplates() { 176 protected String[] getClassTemplates() {
176 return GroovyDocTemplateInfo.DEFAULT_CLASS_TEMPLATES; 177 return UserDocTemplateInfo.DEFAULT_CLASS_TEMPLATES;
177 } 178 }
178 } 179 }