add deploy pentaho reports task so gradle tomcatrunwar will deploy multi-tenant supported reports into proper directory by default for development.

This commit is contained in:
Keith Woodlock
2013-03-12 12:10:42 +00:00
parent d8dd0ac13e
commit 6aebffcfeb
+14 -5
View File
@@ -1,10 +1,6 @@
description = '''\ description = '''\
To run this build script we must first
set an environment variable
ORG_GRADLE_PROJECT_property5=environment property
Run as: Run as:
gradle -Property4="argument property" -Dorg.gradle.project.property6="system property" gradle clean tomcatrunwar
''' '''
buildscript { buildscript {
@@ -174,6 +170,19 @@ task dist(type:Zip){
from war.outputs.files 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 { license {
header rootProject.file('../LICENSE.MD') header rootProject.file('../LICENSE.MD')
strictCheck true strictCheck true