mirror of
				https://github.com/spring-projects/spring-security.git
				synced 2025-10-31 06:38:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			803 B
		
	
	
	
		
			Groovy
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			803 B
		
	
	
	
		
			Groovy
		
	
	
	
	
	
| apply plugin: 'base'
 | |
| apply plugin: 'docbook'
 | |
| 
 | |
| [docbookHtml, docbookFoPdf, docbookHtmlSingle]*.sourceFileName = 'springsecurity.xml';
 | |
| 
 | |
| docbookHtml.stylesheet = new File(projectDir, 'src/xsl/html-custom.xsl')
 | |
| docbookHtmlSingle.stylesheet = new File(projectDir, 'src/xsl/html-single-custom.xsl')
 | |
| docbookFoPdf.stylesheet = new File(projectDir, 'src/xsl/pdf-custom.xsl')
 | |
| def imagesDir = new File(projectDir, 'src/docbook/images');
 | |
| docbookFoPdf.admonGraphicsPath = "${imagesDir}/"
 | |
| 
 | |
| task doc (dependsOn: [docbookHtml, docbookHtmlSingle, 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: imagesDir)}
 | |
|     }
 | |
| }
 |