daust / JasperReportsIntegration

JasperReportsIntegration provides an interface to use the JasperReports reporting engine in an Oracle database application, specifically with Oracle Application Express (Oracle APEX).
BSD 3-Clause "New" or "Revised" License
55 stars 23 forks source link

Variable for report path #84

Closed AljazMaliTRTS closed 2 years ago

AljazMaliTRTS commented 2 years ago

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ž

daust commented 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
AljazMaliTRTS commented 2 years ago

Great, thank you!

Aljaž

daust commented 2 years ago

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.