comparison src/main/resources/org/ssdt_ohio/gradle/userdoc/templates/classDocName.html @ 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 8400a7db1330
children e8e14d5d6be2
comparison
equal deleted inserted replaced
16:8400a7db1330 17:3741247de37a
10 <!-- * i.e. only iterate & print data where possible. Thanks, Jez. * --> 10 <!-- * i.e. only iterate & print data where possible. Thanks, Jez. * -->
11 <!-- **************************************************************** --> 11 <!-- **************************************************************** -->
12 <% 12 <%
13 13
14 println "Generating for $classDoc (${classDoc.class})" 14 println "Generating for $classDoc (${classDoc.class})"
15 classDoc = new org.ssdt_ohio.gradle.doc.tools.UserClassDocProxy().wrap(classDoc) 15 classDoc = props.get('userdocHelper').wrap(classDoc)
16 16
17 def title = classDoc.name() + (props.docTitle ? " (${props.docTitle})" : "") 17 def title = classDoc.name() + (props.docTitle ? " (${props.docTitle})" : "")
18 def isVisible = { it.isPublic() || (it.isProtected() && props.protectedScope == 'true') || (!it.isProtected() && !it.isPrivate() && props.packageScope == 'true') || props.privateScope == 'true' } 18 def isVisible = { it.isPublic() || (it.isProtected() && props.protectedScope == 'true') || (!it.isProtected() && !it.isPrivate() && props.packageScope == 'true') || props.privateScope == 'true' }
19 def isVisibleExt = { t -> java.lang.reflect.Modifier.isPublic(t.modifiers) || java.lang.reflect.Modifier.isProtected(t.modifiers) } 19 def isVisibleExt = { t -> java.lang.reflect.Modifier.isPublic(t.modifiers) || java.lang.reflect.Modifier.isProtected(t.modifiers) }
20 def visibleFields = classDoc.fields().findAll(isVisible) 20 def visibleFields = classDoc.fields().findAll(isVisible)