From be00464ff8350c260e4377dfc6ebfcc66356eff9 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Fri, 26 Sep 2014 11:02:25 +0200 Subject: copy configuration and documentation to release folder --- pdf-as-web/build.gradle | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'pdf-as-web') 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 -- cgit v1.2.3