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-lib/build.gradle | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'pdf-as-lib') diff --git a/pdf-as-lib/build.gradle b/pdf-as-lib/build.gradle index 7f3e1add..114faebc 100644 --- a/pdf-as-lib/build.gradle +++ b/pdf-as-lib/build.gradle @@ -60,12 +60,19 @@ dependencies { testCompile group: 'junit', name: 'junit', version: '4.+' } +task releaseConfig(type: Copy) { + from 'src/main/resources/config/config.zip' + into rootDir.toString() + "/releases/" + version + "/cfg" + rename 'config.zip', 'defaultConfig.zip' +} + task releases(type: Copy) { from jar.outputs into rootDir.toString() + "/releases/" + version - rename '.*.war', 'pdf-as-web.war' } +releases.dependsOn releaseConfig + task apidocs(type: Javadoc) { classpath = configurations.compile source = sourceSets.main.allJava -- cgit v1.2.3