[html specs] Use proposed final draft watermark for Core and Cmpn
@@ -335,6 +335,7 @@ tasks.addRule('Pattern: <name>.html: Generate the docbook html files for the boo
def profileXSL = file('docbook/xsl/custom-html-profile.xsl')
def htmlResources = file('docbook/xsl/html-resources')
def licensedResources = file("${bnd.licensed}/webresources")
+ ext.watermark = 'draft.png'
ext.destinationDir = new File(buildDir, "html/${book}/")
inputs.files booktask, rasterizetask, stylesheet, commonXSL, profileXSL, htmlResources, licensedResources
@@ -359,7 +360,7 @@ tasks.addRule('Pattern: <name>.html: Generate the docbook html files for the boo
classpath('location': bnd.saxon)
factory('name': 'com.icl.saxon.TransformerFactoryImpl')
param('name': 'copyright.year', 'expression': "2000, ${bnd('copyright.year')}")
- param('name': 'draft.watermark.image', 'expression': 'proposed-final-draft.png')
+ param('name': 'draft.watermark.image', 'expression': watermark)
param('name': 'webhelp.base.dir', 'expression': destinationDir)
param('name': 'webhelp.default.topic', 'expression': "index.html")
param('name': 'release.version', 'expression': bnd('osgi.release'))
@@ -392,6 +393,13 @@ tasks.addRule('Pattern: <name>.html: Generate the docbook html files for the boo
}
}
+configure(tasks.getByName('core.html')) {
+ ext.watermark = 'proposed-final-draft.png'
+}
+configure(tasks.getByName('cmpn.html')) {
+ ext.watermark = 'proposed-final-draft.png'
+}
+
tasks.addRule('Pattern: <name>.zip: Generate a ZIP archive of the docbook html for the book <name>.') { taskName ->
if (taskName.endsWith('.zip')) {
task(taskName, type: Zip) {
