Mercurial > public > gradleplugins
comparison src/main/groovy/org/ssdt_ohio/gradle/tasks/UserDoc.groovy @ 17:3741247de37a
USASR-1307: add helper to resolve template classpath problem
author | smith@nwoca.org |
---|---|
date | Thu, 01 Jan 2015 00:01:02 +0000 |
parents | e3c55e83c9a4 |
children | b14418c2ce40 |
comparison
equal
deleted
inserted
replaced
16:8400a7db1330 | 17:3741247de37a |
---|---|
11 import org.gradle.api.logging.LogLevel | 11 import org.gradle.api.logging.LogLevel |
12 import org.gradle.api.tasks.InputFiles | 12 import org.gradle.api.tasks.InputFiles |
13 import org.gradle.api.tasks.OutputDirectory | 13 import org.gradle.api.tasks.OutputDirectory |
14 import org.gradle.api.tasks.SourceTask | 14 import org.gradle.api.tasks.SourceTask |
15 import org.gradle.api.tasks.TaskAction | 15 import org.gradle.api.tasks.TaskAction |
16 import org.ssdt_ohio.gradle.doc.tools.UserDocHelper | |
16 | 17 |
17 class UserDoc extends SourceTask { | 18 class UserDoc extends SourceTask { |
18 | 19 |
19 private FileCollection groovyClasspath; | 20 private FileCollection groovyClasspath; |
20 | 21 |
69 // properties.setProperty("processScripts", processScripts.toString()); | 70 // properties.setProperty("processScripts", processScripts.toString()); |
70 // properties.setProperty("includeMainForScripts", includeMainForScripts.toString()); | 71 // properties.setProperty("includeMainForScripts", includeMainForScripts.toString()); |
71 // properties.setProperty("overviewFile", overviewFile != null ? overviewFile.getAbsolutePath() : ""); | 72 // properties.setProperty("overviewFile", overviewFile != null ? overviewFile.getAbsolutePath() : ""); |
72 // properties.setProperty("charset", charset != null ? charset : ""); | 73 // properties.setProperty("charset", charset != null ? charset : ""); |
73 // properties.setProperty("fileEncoding", fileEncoding != null ? fileEncoding : ""); | 74 // properties.setProperty("fileEncoding", fileEncoding != null ? fileEncoding : ""); |
74 // | 75 |
76 properties.put('userdocHelper',new UserDocHelper()) | |
75 | 77 |
76 def tool = new GroovyDocTool(new ClasspathResourceManager(this.getClass().getClassLoader()), | 78 def tool = new GroovyDocTool(new ClasspathResourceManager(this.getClass().getClassLoader()), |
77 [tmpDir.getPath()] as String[], | 79 [tmpDir.getPath()] as String[], |
78 getDocTemplates(), | 80 getDocTemplates(), |
79 getPackageTemplates(), | 81 getPackageTemplates(), |