diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-08-22 14:45:09 +0200 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-08-22 14:45:09 +0200 |
commit | 77a86d33989757f17379519301aea45f9ef82dbd (patch) | |
tree | 0bf550a8bff64610651d5f705586bd362ebca266 /pdf-as-lib/build.gradle | |
parent | 030e30be6dd3580528228a900af69346be5a27e2 (diff) | |
download | pdf-as-4-77a86d33989757f17379519301aea45f9ef82dbd.tar.gz pdf-as-4-77a86d33989757f17379519301aea45f9ef82dbd.tar.bz2 pdf-as-4-77a86d33989757f17379519301aea45f9ef82dbd.zip |
Build system update
Diffstat (limited to 'pdf-as-lib/build.gradle')
-rw-r--r-- | pdf-as-lib/build.gradle | 57 |
1 files changed, 27 insertions, 30 deletions
diff --git a/pdf-as-lib/build.gradle b/pdf-as-lib/build.gradle index 2215692e..a947bd15 100644 --- a/pdf-as-lib/build.gradle +++ b/pdf-as-lib/build.gradle @@ -69,43 +69,40 @@ task releases(type: Copy) { task apidocs(type: Javadoc) { classpath = configurations.compile source = sourceSets.main.allJava - project.configure(options) { - destinationDir = new File(projectDir, '../docs/api') - memberLevel = org.gradle.external.javadoc.JavadocMemberLevel.PROTECTED - charSet = "ISO-8859-1" - docTitle = "PDF-AS " + pdfasversion + " Documentation" - version = pdfasversion - include = include('at/gv/egiz/pdfas/lib/api/**') - windowTitle = "PDF-AS " + pdfasversion + " Library" - header = "<b>PDF-AS " + pdfasversion + " Library " + pdfasversion + " [" + revision + "]</b>" - use = "true" - links("http://java.sun.com/j2ee/1.4/docs/api", "http://java.sun.com/j2se/1.5.0/docs/api") - } + destinationDir = new File(rootDir.toString() + "/releases/docs/api") + title = "PDF-AS " + project.pdfasversion + " Documentation" + options.memberLevel = org.gradle.external.javadoc.JavadocMemberLevel.PUBLIC + options.charSet = "ISO-8859-1" + options.author = "Andreas Fitzek" + options.docTitle = "PDF-AS " + project.pdfasversion + " Documentation" + options.version = project.pdfasversion + options.windowTitle = "PDF-AS " + project.pdfasversion + " Library" + options.header = "<b>PDF-AS " + project.pdfasversion + " Library " + project.pdfasversion + " [" + project.revision + "]</b>" + options.use = "true" + options.links("http://docs.oracle.com/javase/1.5.0/docs/api/") + include('at/gv/egiz/pdfas/lib/api/**') } task fulldocs(type: Javadoc) { classpath = configurations.compile source = sourceSets.main.allJava - project.configure(options) { - destinationDir = new File(projectDir, '../docs/full') - memberLevel = org.gradle.external.javadoc.JavadocMemberLevel.PROTECTED - charSet = "ISO-8859-1" - docTitle = "PDF-AS " + pdfasversion + " Documentation" - version = pdfasversion - include = include('at/gv/egiz/**') - windowTitle = "PDF-AS " + pdfasversion + " Library" - header = "<b>PDF-AS " + pdfasversion + " Library " + pdfasversion + " [" + revision + "]</b>" - use = "true" - links("http://java.sun.com/j2ee/1.4/docs/api", "http://java.sun.com/j2se/1.5.0/docs/api") - } + destinationDir = new File(rootDir.toString() + "/releases/docs/api") + title = "PDF-AS " + project.pdfasversion + " Documentation" + options.memberLevel = org.gradle.external.javadoc.JavadocMemberLevel.PROTECTED + options.charSet = "ISO-8859-1" + options.author = "Andreas Fitzek" + options.docTitle = "PDF-AS " + project.pdfasversion + " Documentation" + options.version = project.pdfasversion + options.windowTitle = "PDF-AS " + project.pdfasversion + " Library" + options.header = "<b>PDF-AS " + project.pdfasversion + " Library " + project.pdfasversion + " [" + project.revision + "]</b>" + options.use = "true" + options.links("http://docs.oracle.com/javase/1.5.0/docs/api/") + include('at/knowcenter/wag/egiz/**') + include('at/gv/egiz/**') } -task apidocspdf << { - def proc = "./doc.sh".execute() - proc.in.eachLine {line -> println line} - proc.err.eachLine {line -> println 'ERROR: ' + line} - proc.waitFor() -} +releases.dependsOn apidocs +releases.dependsOn fulldocs test { systemProperties 'property': 'value' |