aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-08-19 13:19:01 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-08-19 13:19:01 +0200
commit17a691b4744214e67d774fad96e40e4797844615 (patch)
treef029a5dcc106d07f38ed269fa5f10a9c4a387ac8 /pdf-as-web
parent543498ccc99509254af2fa2db493479279221537 (diff)
downloadpdf-as-4-17a691b4744214e67d774fad96e40e4797844615.tar.gz
pdf-as-4-17a691b4744214e67d774fad96e40e4797844615.tar.bz2
pdf-as-4-17a691b4744214e67d774fad96e40e4797844615.zip
Build system update4.0.0-RC9
Diffstat (limited to 'pdf-as-web')
-rw-r--r--pdf-as-web/build.gradle29
1 files changed, 29 insertions, 0 deletions
diff --git a/pdf-as-web/build.gradle b/pdf-as-web/build.gradle
index ccc29bec..ba356a0d 100644
--- a/pdf-as-web/build.gradle
+++ b/pdf-as-web/build.gradle
@@ -145,3 +145,32 @@ task buildTomcat(dependsOn: injectPdfAsWebApp, type: Zip) {
destinationDir project.buildDir
}
+task buildTomcatTar(dependsOn: injectPdfAsWebApp, type: Tar) {
+ String targetDir = project.buildDir.toString() + "/tomcat-##VERSION##/apache-tomcat-##VERSION##";
+ targetDir = targetDir.replaceAll("##VERSION##", tomcatVersion);
+
+ String archive = "apache-tomcat-##VERSION##-pdf-as-web-##PVERSION##.tar";
+ archive = archive.replaceAll("##VERSION##", tomcatVersion);
+ archive = archive.replaceAll("##PVERSION##", version);
+
+ from targetDir
+ archiveName archive
+ destinationDir project.buildDir
+}
+
+task releases(dependsOn: buildTomcat, type: Copy) {
+ String archive = project.buildDir.toString() + "/apache-tomcat-##VERSION##-pdf-as-web-##PVERSION##.zip";
+ archive = archive.replaceAll("##VERSION##", tomcatVersion);
+ archive = archive.replaceAll("##PVERSION##", version);
+
+ String tararchive = project.buildDir.toString() + "/apache-tomcat-##VERSION##-pdf-as-web-##PVERSION##.tar";
+ tararchive = tararchive.replaceAll("##VERSION##", tomcatVersion);
+ tararchive = tararchive.replaceAll("##PVERSION##", version);
+
+ from war.outputs
+ from archive
+ from tararchive
+ into rootDir.toString() + "/releases"
+}
+
+releases.dependsOn buildTomcatTar