Skip to content

Instantly share code, notes, and snippets.

@tyama
Created December 17, 2009 05:44
Show Gist options
  • Save tyama/258552 to your computer and use it in GitHub Desktop.
Save tyama/258552 to your computer and use it in GitHub Desktop.
@Grapes([
@Grab("org.grails:grails-docs:1.2.0.RC2"),
@Grab("radeox:radeox:1.0-b2"),
@Grab("ant:ant-nodeps:1.6.5"),
@GrabConfig(systemClassLoader=true)
])
import grails.doc.ant.*
new AntBuilder().sequential {
native2ascii(src:"conf",dest:"src/docs",includes:"**/*.properties",encoding:"UTF-8")
taskdef (name: 'docs', classname : 'grails.doc.ant.DocPublisherTask')
docs(src:"src/docs", dest:"build/docs",properties:"src/docs/doc.properties",
styleDir: new File('src/resources/style'),
cssDir : new File('src/resources/css'),
imagesDir : new File('src/resources/img')
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment