Added tasks for apidocs, doc and distro archive generation to the build file.

This commit is contained in:
Luke Taylor
2010-01-20 04:14:48 +00:00
parent 10cd080090
commit 56849dc41e
6 changed files with 79 additions and 28 deletions

View File

@@ -1,14 +0,0 @@
usePlugin('docbook')
defaultTasks 'docbookHtmlSingle'
docbookSrcFileName = 'faq.xml'
docbookHtmlSingle.stylesheet = new File(projectDir, 'src/xsl/html-single-custom.xsl')
docbookHtmlSingle.doLast {
resourcesDir = new File(projectDir, 'src/resources')
ant {
docsDir = new File(buildDir, 'docs')
copy(toDir: docsDir) {fileset(dir: resourcesDir)}
}
}

15
docs/faq/faq.gradle Normal file
View File

@@ -0,0 +1,15 @@
apply id: 'base'
apply id: 'docbook'
defaultTasks 'docbookHtmlSingle'
docbookSrcFileName = 'faq.xml'
docbookHtmlSingle.stylesheet = new File(projectDir, 'src/xsl/html-single-custom.xsl')
docbookHtmlSingle.doLast {
resourcesDir = new File(projectDir, 'src/resources')
ant {
docsDir = new File(buildDir, 'docs')
copy(toDir: docsDir) {fileset(dir: resourcesDir)}
}
}