From 6aebffcfebb89ccabfcf67b6f5fc1c97a2218b10 Mon Sep 17 00:00:00 2001 From: Keith Woodlock Date: Tue, 12 Mar 2013 12:10:42 +0000 Subject: [PATCH] add deploy pentaho reports task so gradle tomcatrunwar will deploy multi-tenant supported reports into proper directory by default for development. --- mifosng-provider/build.gradle | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/mifosng-provider/build.gradle b/mifosng-provider/build.gradle index c920ac050..9f6913343 100644 --- a/mifosng-provider/build.gradle +++ b/mifosng-provider/build.gradle @@ -1,10 +1,6 @@ description = '''\ -To run this build script we must first -set an environment variable -ORG_GRADLE_PROJECT_property5=environment property - Run as: -gradle -Property4="argument property" -Dorg.gradle.project.property6="system property" +gradle clean tomcatrunwar ''' buildscript { @@ -174,6 +170,19 @@ task dist(type:Zip){ from war.outputs.files } +task deployPentahoReports() { + def pentahoReportDir = System.properties['user.home'] + System.properties['file.separator'] + '.mifosx' + System.properties['file.separator'] + 'pentahoReports' + println ":deployPentahoReports - moving pentaho reports under: " + pentahoReportDir + copy { + from "src/main/pentahoReports" + into pentahoReportDir + } +} + +war { + it.dependsOn deployPentahoReports +} + license { header rootProject.file('../LICENSE.MD') strictCheck true