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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user