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)}
}
}

View File

@@ -1,19 +1,17 @@
apply id: 'base'
apply id: 'docbook'
defaultTasks 'docbookHtml'
docbookSrcFileName = 'springsecurity.xml'
docbookHtml.stylesheet = new File(projectDir, 'src/xsl/html-custom.xsl')
docbookFoPdf.stylesheet = new File(projectDir, 'src/xsl/pdf-custom.xsl')
docbookHtml.doLast {
task doc (dependsOn: [docbookHtml, docbookFoPdf]) << {
resourcesDir = new File(projectDir, 'src/resources')
ant {
docsDir = new File(buildDir, 'docs')
copy(toDir: docsDir) {fileset(dir: resourcesDir)}
copy(toDir: new File(docsDir, 'images')) {fileset(dir: new File(projectDir, 'src/docbook/images'))}
// TODO: Add this to the plugin
delete { fileset(dir: docsDir, includes: "*.fo")}
}
}
/*docbookSrc = new File(project.buildDir, 'docbook/src')
docbookDir = new File(project.buildDir, 'docbook/stylesheets')*/

View File

@@ -10,7 +10,7 @@
</author>
</authorgroup>
<productname>Spring Security</productname>
<releaseinfo>3.0.2.CI-SNAPSHOT</releaseinfo>
<releaseinfo>3.0.1.RELEASE</releaseinfo>
</info>
<toc/>
<preface xml:id="preface">