From 77a86d33989757f17379519301aea45f9ef82dbd Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Fri, 22 Aug 2014 14:45:09 +0200 Subject: Build system update --- pdf-as-lib/build.gradle | 57 +++++++++++++++++++++++-------------------------- 1 file changed, 27 insertions(+), 30 deletions(-) (limited to 'pdf-as-lib') 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 = "PDF-AS " + pdfasversion + " Library " + pdfasversion + " [" + revision + "]" - 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 = "PDF-AS " + project.pdfasversion + " Library " + project.pdfasversion + " [" + project.revision + "]" + 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 = "PDF-AS " + pdfasversion + " Library " + pdfasversion + " [" + revision + "]" - 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 = "PDF-AS " + project.pdfasversion + " Library " + project.pdfasversion + " [" + project.revision + "]" + 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' -- cgit v1.2.3