Closed AljazMaliTRTS closed 2 years ago
As discussed, I can implement this using a path setting in the application.properties
file, something like this:
reportsPath=reports:/path/to/reports1:/path/to/reports2:/path/to/reports3
and for Windows:
reportsPath=reports;c:\\path\\to\\reports1;c:\\path\\to\\reports2;c:\\path\\to\\reports3
reportsPath=reports
reports
will be relative to the configuration-directory (resolved either through ${OC_JASPER_CONFIG_HOME} or the setting in the web.xml file. Great, thank you!
Aljaž
We have a new section in the application.properties
file:
# report definition files will be looked up in the following order as
# specified by the reportsPath, e.g.:
# Linux/macOS: reportsPath=../reports,/path/to/reports1:/path/to/reports2:/path/to/reports3
# Windows: reportsPath=..\\reports;c:\\path\\to\\reports1;c:\\path\\to\\reports2;c:\\path\\to\\reports3
# If the reportsPath is left empty or not defined, then the default is "../reports" (*nix) or
# "..\\reports" (windows) respectively, will start from the location of the application.properties (this)
# file
reportsPath=
The documentation is updated as well, the installation-full.md
and README.md
files.
Hi Dietmar,
it would be great if there would be a dedicated setting/variable that would allow to specify the location of reports.
Thank you, Aljaž