annotate src/main/groovy/org/ssdt_ohio/gradle/tasks/UserDocTemplateInfo.groovy @ 30:bf31e9ad44cf

SC-181 Upgrade to gradle 5.0 for version 0.4.5, fix problems with VersionClassPlugin
author Greg Shepherd <shepherd@ssdt-ohio.org>
date Tue, 18 Feb 2020 16:36:38 -0500
parents b3282a66cc05
children
rev   line source
14
9de72de14ab3 USASR-1307: customize CSS and override class template
Dave Smith <smith@nwoca.org>
parents:
diff changeset
1 /*
9de72de14ab3 USASR-1307: customize CSS and override class template
Dave Smith <smith@nwoca.org>
parents:
diff changeset
2 * Copyright (c) 2013. Ohio Department of Education. - All Rights Reserved.
9de72de14ab3 USASR-1307: customize CSS and override class template
Dave Smith <smith@nwoca.org>
parents:
diff changeset
3 * Unauthorized copying of this file, in any medium, is strictly prohibited.
9de72de14ab3 USASR-1307: customize CSS and override class template
Dave Smith <smith@nwoca.org>
parents:
diff changeset
4 * Written by State Software Development Team (http://ssdt.oecn.k12.oh.us/)
9de72de14ab3 USASR-1307: customize CSS and override class template
Dave Smith <smith@nwoca.org>
parents:
diff changeset
5 */
9de72de14ab3 USASR-1307: customize CSS and override class template
Dave Smith <smith@nwoca.org>
parents:
diff changeset
6
9de72de14ab3 USASR-1307: customize CSS and override class template
Dave Smith <smith@nwoca.org>
parents:
diff changeset
7 package org.ssdt_ohio.gradle.tasks
9de72de14ab3 USASR-1307: customize CSS and override class template
Dave Smith <smith@nwoca.org>
parents:
diff changeset
8
9de72de14ab3 USASR-1307: customize CSS and override class template
Dave Smith <smith@nwoca.org>
parents:
diff changeset
9
9de72de14ab3 USASR-1307: customize CSS and override class template
Dave Smith <smith@nwoca.org>
parents:
diff changeset
10 class UserDocTemplateInfo {
9de72de14ab3 USASR-1307: customize CSS and override class template
Dave Smith <smith@nwoca.org>
parents:
diff changeset
11
9de72de14ab3 USASR-1307: customize CSS and override class template
Dave Smith <smith@nwoca.org>
parents:
diff changeset
12 private static final String USERDOC_BASEDIR = "org/ssdt_ohio/gradle/userdoc/templates/";
9de72de14ab3 USASR-1307: customize CSS and override class template
Dave Smith <smith@nwoca.org>
parents:
diff changeset
13
9de72de14ab3 USASR-1307: customize CSS and override class template
Dave Smith <smith@nwoca.org>
parents:
diff changeset
14 private static final String TEMPLATE_BASEDIR = "org/codehaus/groovy/tools/groovydoc/gstringTemplates/";
9de72de14ab3 USASR-1307: customize CSS and override class template
Dave Smith <smith@nwoca.org>
parents:
diff changeset
15 private static final String DOCGEN_BASEDIR = "org/codehaus/groovy/tools/";
22
b3282a66cc05 disable author property. change favicon
smith@nwoca.org
parents: 14
diff changeset
16 public static final String[] DEFAULT_DOC_TEMPLATES =
b3282a66cc05 disable author property. change favicon
smith@nwoca.org
parents: 14
diff changeset
17 [ // top level templates
b3282a66cc05 disable author property. change favicon
smith@nwoca.org
parents: 14
diff changeset
18 TEMPLATE_BASEDIR + "topLevel/index.html",
b3282a66cc05 disable author property. change favicon
smith@nwoca.org
parents: 14
diff changeset
19 TEMPLATE_BASEDIR + "topLevel/overview-frame.html", // needs all package names
b3282a66cc05 disable author property. change favicon
smith@nwoca.org
parents: 14
diff changeset
20 TEMPLATE_BASEDIR + "topLevel/allclasses-frame.html", // needs all packages / class names
b3282a66cc05 disable author property. change favicon
smith@nwoca.org
parents: 14
diff changeset
21 TEMPLATE_BASEDIR + "topLevel/overview-summary.html", // needs all packages
b3282a66cc05 disable author property. change favicon
smith@nwoca.org
parents: 14
diff changeset
22 TEMPLATE_BASEDIR + "topLevel/help-doc.html",
b3282a66cc05 disable author property. change favicon
smith@nwoca.org
parents: 14
diff changeset
23 TEMPLATE_BASEDIR + "topLevel/index-all.html",
b3282a66cc05 disable author property. change favicon
smith@nwoca.org
parents: 14
diff changeset
24 TEMPLATE_BASEDIR + "topLevel/deprecated-list.html",
b3282a66cc05 disable author property. change favicon
smith@nwoca.org
parents: 14
diff changeset
25 USERDOC_BASEDIR + "stylesheet.css", // copy default one, may override later
b3282a66cc05 disable author property. change favicon
smith@nwoca.org
parents: 14
diff changeset
26 TEMPLATE_BASEDIR + "topLevel/inherit.gif",
b3282a66cc05 disable author property. change favicon
smith@nwoca.org
parents: 14
diff changeset
27 USERDOC_BASEDIR + "groovy.ico",
b3282a66cc05 disable author property. change favicon
smith@nwoca.org
parents: 14
diff changeset
28 ]
14
9de72de14ab3 USASR-1307: customize CSS and override class template
Dave Smith <smith@nwoca.org>
parents:
diff changeset
29
9de72de14ab3 USASR-1307: customize CSS and override class template
Dave Smith <smith@nwoca.org>
parents:
diff changeset
30 public static final String[] DEFAULT_PACKAGE_TEMPLATES = [ // package level templates
22
b3282a66cc05 disable author property. change favicon
smith@nwoca.org
parents: 14
diff changeset
31 TEMPLATE_BASEDIR + "packageLevel/package-frame.html",
b3282a66cc05 disable author property. change favicon
smith@nwoca.org
parents: 14
diff changeset
32 TEMPLATE_BASEDIR + "packageLevel/package-summary.html"
14
9de72de14ab3 USASR-1307: customize CSS and override class template
Dave Smith <smith@nwoca.org>
parents:
diff changeset
33 ]
9de72de14ab3 USASR-1307: customize CSS and override class template
Dave Smith <smith@nwoca.org>
parents:
diff changeset
34
9de72de14ab3 USASR-1307: customize CSS and override class template
Dave Smith <smith@nwoca.org>
parents:
diff changeset
35 public static final String[] DEFAULT_CLASS_TEMPLATES = [ // class level templates
22
b3282a66cc05 disable author property. change favicon
smith@nwoca.org
parents: 14
diff changeset
36 USERDOC_BASEDIR + "classDocName.html"
14
9de72de14ab3 USASR-1307: customize CSS and override class template
Dave Smith <smith@nwoca.org>
parents:
diff changeset
37 ]
9de72de14ab3 USASR-1307: customize CSS and override class template
Dave Smith <smith@nwoca.org>
parents:
diff changeset
38
9de72de14ab3 USASR-1307: customize CSS and override class template
Dave Smith <smith@nwoca.org>
parents:
diff changeset
39
9de72de14ab3 USASR-1307: customize CSS and override class template
Dave Smith <smith@nwoca.org>
parents:
diff changeset
40 }