From 9a72ee233af66b5dc8470a6a90e35a29f6057809 Mon Sep 17 00:00:00 2001 From: Antonio Mata Date: Tue, 25 Jun 2013 12:05:17 +0300 Subject: [PATCH] clean doc resources before new publishing If you use this plugin in several projects, all resources of all projects go to `target/docs` in every projects . So it's good to clear `workDir` before every new documentation generation. --- src/groovy/grails/plugins/newdoc/DocPublisher.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/groovy/grails/plugins/newdoc/DocPublisher.groovy b/src/groovy/grails/plugins/newdoc/DocPublisher.groovy index 0c6f03f..d3b9880 100644 --- a/src/groovy/grails/plugins/newdoc/DocPublisher.groovy +++ b/src/groovy/grails/plugins/newdoc/DocPublisher.groovy @@ -137,6 +137,7 @@ class DocPublisher { // unpack documentation resources String docResources = "${workDir}/doc-resources" + ant.delete(dir: docResources) ant.mkdir(dir: docResources) //unpack(dest: docResources, src: "grails-doc-files.jar") ant.copy(todir: docResources, overwrite: true) { @@ -623,4 +624,4 @@ class DocPublisher { overrideAliasesFromToc(section) } } -} \ No newline at end of file +}