aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-09-26 11:02:25 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-09-26 11:02:25 +0200
commitbe00464ff8350c260e4377dfc6ebfcc66356eff9 (patch)
treea856e2fe39c99697ba779f24885cc2cb2bedeed3 /pdf-as-web
parent9f21e91f4b41f56871aa073df03dbb0a38da1c47 (diff)
downloadpdf-as-4-be00464ff8350c260e4377dfc6ebfcc66356eff9.tar.gz
pdf-as-4-be00464ff8350c260e4377dfc6ebfcc66356eff9.tar.bz2
pdf-as-4-be00464ff8350c260e4377dfc6ebfcc66356eff9.zip
copy configuration and documentation to release folder
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