To use a system environment variable for your report generator, write the path and filename where you would like the output file to be created and stored.
On Windows, you would set the environment variable like this:
set WRITE_REPORT_XML=<filename>
On Linux, you would set the environment variable like this:
export WRITE_REPORT_XML=<filename>
For the Black Duck Software Integrity Report Generator, you can use the following environment variable:
WRITE_REPORT_XML: This variable writes properties from the report's configuration to the XML output file. If a file with the same filename exists, it will be overwritten. A warning is issued if the file cannot be opened.