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