diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-09-26 11:02:25 +0200 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-09-26 11:02:25 +0200 |
commit | be00464ff8350c260e4377dfc6ebfcc66356eff9 (patch) | |
tree | a856e2fe39c99697ba779f24885cc2cb2bedeed3 /pdf-as-web/build.gradle | |
parent | 9f21e91f4b41f56871aa073df03dbb0a38da1c47 (diff) | |
download | pdf-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/build.gradle')
-rw-r--r-- | pdf-as-web/build.gradle | 10 |
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 |