Added tasks for apidocs, doc and distro archive generation to the build file.
This commit is contained in:
@@ -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)}
|
||||
}
|
||||
}
|
||||
@@ -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)}
|
||||
}
|
||||
}
|
||||
@@ -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')*/
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user