Skip to content

Commit

Permalink
Added set up for creating module HTML pages
Browse files Browse the repository at this point in the history
Signed-off-by: Rajarshi  Guha <[email protected]>
  • Loading branch information
egonw authored and rajarshi committed Apr 24, 2009
1 parent 742da7a commit 8e183f9
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ cdk.log*
cdk-src+libs-*.tar.gz
cdk-src+libs-*.zip
sourcedist
*~
27 changes: 27 additions & 0 deletions createModulePages.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/groovy

ant = new AntBuilder()

ant.delete(dir:"doc/modules")
ant.mkdir(dir:"doc/modules")

def basedir = new File("src/META-INF")
files = basedir.listFiles().grep(~/.*cdkdepends$/)
files.each {
file = it
m = (file =~ ~/\/([-|\w]*)\.cdkdepends/)
module = m[0][1]

def writer = new StringWriter()
def builder = new groovy.xml.MarkupBuilder(writer)
builder.html(){
head(){
title("CDK Module: " + module){}
}
body(){
h1("CDK Module: " + module)
}
}
new File("doc/modules/" + module + ".html").write(writer.toString())
}

1 change: 1 addition & 0 deletions doc/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
cdk-javadoc-*
modules

0 comments on commit 8e183f9

Please sign in to comment.