| 
									
										
										
										
											2010-01-14 15:49:05 +00:00
										 |  |  | apply id: 'docbook' | 
					
						
							| 
									
										
										
										
											2009-12-04 21:33:17 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 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 { | 
					
						
							| 
									
										
										
										
											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)} | 
					
						
							|  |  |  |         copy(toDir: new File(docsDir, 'images')) {fileset(dir: new File(projectDir, 'src/docbook/images'))} | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2009-12-04 21:33:17 +00:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /*docbookSrc = new File(project.buildDir, 'docbook/src') | 
					
						
							|  |  |  | docbookDir = new File(project.buildDir, 'docbook/stylesheets')*/ |