diff options
Diffstat (limited to 'pdf-as-web')
-rw-r--r-- | pdf-as-web/build.gradle | 29 |
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 |