File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ configure(subprojects.findAll { it.name != 'util' }) {
105
105
exclude " **/org/bson/**/internal/**"
106
106
107
107
dependsOn project(' :util' ). compileJava // We need taglets to be compiled
108
+
108
109
options. author = true
109
110
options. version = true
110
111
options. links ' http://docs.oracle.com/javase/7/docs/api/'
@@ -136,6 +137,14 @@ configure(subprojects.findAll { it.name != 'util' }) {
136
137
}
137
138
</script>
138
139
'''
140
+
141
+ // Add --allow-script-in-comments if available (since 1.8.0_121)
142
+ try {
143
+ if (Class . forName(' com.sun.tools.doclets.formats.html.ConfigurationImpl' )
144
+ .newInstance(). optionLength(' --allow-script-in-comments' ) > 0 ) {
145
+ options. addBooleanOption(" -allow-script-in-comments" , true )
146
+ }
147
+ } catch (ignored) {}
139
148
}
140
149
}
141
150
You can’t perform that action at this time.
0 commit comments