2010-01-20 12:14:48 +08:00
|
|
|
apply id: 'base'
|
2010-01-14 23:49:05 +08:00
|
|
|
apply id: 'docbook'
|
2009-12-05 05:33:17 +08:00
|
|
|
|
2010-03-03 23:40:57 +08:00
|
|
|
[docbookHtml, docbookFoPdf, docbookHtmlSingle]*.sourceFileName = 'springsecurity.xml';
|
|
|
|
|
2009-12-05 05:33:17 +08:00
|
|
|
docbookHtml.stylesheet = new File(projectDir, 'src/xsl/html-custom.xsl')
|
2010-03-03 23:40:57 +08:00
|
|
|
docbookHtmlSingle.stylesheet = new File(projectDir, 'src/xsl/html-single-custom.xsl')
|
2009-12-05 05:33:17 +08:00
|
|
|
docbookFoPdf.stylesheet = new File(projectDir, 'src/xsl/pdf-custom.xsl')
|
2010-01-21 13:28:17 +08:00
|
|
|
def imagesDir = new File(projectDir, 'src/docbook/images');
|
|
|
|
docbookFoPdf.admonGraphicsPath = "${imagesDir}/"
|
2009-12-05 05:33:17 +08:00
|
|
|
|
2010-03-03 23:40:57 +08:00
|
|
|
task doc (dependsOn: [docbookHtml, docbookHtmlSingle, docbookFoPdf]) << {
|
2010-01-11 07:31:23 +08:00
|
|
|
resourcesDir = new File(projectDir, 'src/resources')
|
|
|
|
ant {
|
|
|
|
docsDir = new File(buildDir, 'docs')
|
|
|
|
copy(toDir: docsDir) {fileset(dir: resourcesDir)}
|
2010-01-21 13:28:17 +08:00
|
|
|
copy(toDir: new File(docsDir, 'images')) {fileset(dir: imagesDir)}
|
2010-01-11 07:31:23 +08:00
|
|
|
}
|
2009-12-05 05:33:17 +08:00
|
|
|
}
|