Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
2.3
-
None
-
Linux RHEL 7, FOP installed from source
Description
When invoking FOP from the command line with an error, fop deletes files. I expect FOP to touch nothing upon an error.
Example:
fop -xml ./my.xml my.xsl -pdf result.pdf
above command throws as expected an error because the -xsl flag is missing in front of the XSL file name:
Jan 15, 2020 8:56:03 AM org.apache.fop.cli.Main startFOP
SEVERE: Exception
org.apache.fop.apps.FOPException: you can only set one output method
But the file my.xsl is gone (deleted) afterwards. The file should not get deleted upon an error in the command line.