I have a Spring boot application that wraps an Eclipse BIRT reporting tool and runs as a Windows service through winsw. When a report with a chart generated by the engine is displayed, Spring Boot saves the image file in a folder created in the directory Windows/Temp. This folder and its contents are saved at startup, which is less desirable.
An application depends on a data folder that exists in a predefined location that exists for all software package installations. Given this, the ideal situation would be to create folders in the package data folder, where it could be easily managed. Is there a way to do this (preferably a method that allows the integrated Tomcat server to find and maintain files)?
Edit: updated with @Magnus response results
The images in question are generated by the ReportEngine rendering process, so I believe this BIRT is not a Tomcat thing, but just so that I add it server.tomcat.basedir=path/to/directoryto my file application.properties. Still writing Windows/Temp.
However, this answer made me think, and I found that the BIRT EngineConfig has a method setTempFolder. Setting to specify the desired folder (with the parameter server.tomcat.basedirin the properties file) causes BIRT to work in the temp folder, but the generated images are saved in the directory Windows\Temp.
Edit: Update 2
I managed to set the property birt.viewer.working.pathin EngineConfig and confirm that it was set by retrieving the value from ReportDesignHandle (or possibly ReportRunnable). With the changed value, ReportEngine now does its job in the correct directory, but still puts the images in a folder Windows\Temp. Overriding a property java.io.tmpdirdid nothing.
Edit: update 3
. HtmlRenderOption , Windows\Temp (yay!). , HtmlRenderOption, (boo!), , , .