aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-web')
-rw-r--r--pdf-as-web/build.gradle10
1 files changed, 9 insertions, 1 deletions
diff --git a/pdf-as-web/build.gradle b/pdf-as-web/build.gradle
index ede67c2c..6b88f734 100644
--- a/pdf-as-web/build.gradle
+++ b/pdf-as-web/build.gradle
@@ -120,7 +120,7 @@ task putWebConfigIntoTomcat(dependsOn: putConfigIntoTomcat, type: Copy) {
}
task injectPdfAsWebApp(dependsOn: putWebConfigIntoTomcat, type: Copy) {
- war.execute();
+ //war.execute();
String targetDir = project.buildDir.toString() + "/tomcat-##VERSION##/apache-tomcat-##VERSION##/webapps/";
targetDir = targetDir.replaceAll("##VERSION##", project.tomcatVersion);
@@ -130,6 +130,8 @@ task injectPdfAsWebApp(dependsOn: putWebConfigIntoTomcat, type: Copy) {
rename '.*.war', 'pdf-as-web.war'
}
+injectPdfAsWebApp.dependsOn war
+
task buildTomcat(dependsOn: injectPdfAsWebApp, type: Zip) {
String targetDir = project.buildDir.toString() + "/tomcat-##VERSION##/apache-tomcat-##VERSION##";
targetDir = targetDir.replaceAll("##VERSION##", project.tomcatVersion);
@@ -171,4 +173,10 @@ task releases(dependsOn: buildTomcat, type: Copy) {
into rootDir.toString() + "/releases/" + version
}
+task releaseConfig(type: Copy) {
+ from 'src/main/configuration/pdf-as-web.properties'
+ into rootDir.toString() + "/releases/" + version + "/cfg"
+}
+
+releases.dependsOn releaseConfig
releases.dependsOn buildTomcatTar