[ https://issues.apache.org/jira/browse/FOP-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Steiner reassigned FOP-2903: ---------------------------------- Assignee: Simon Steiner > [PATCH] Do not delete files on invocation with syntax errors in command line > ---------------------------------------------------------------------------- > > Key: FOP-2903 > URL: https://issues.apache.org/jira/browse/FOP-2903 > Project: FOP > Issue Type: Bug > Components: unqualified > Affects Versions: 2.3 > Environment: Linux RHEL 7, FOP installed from source > Reporter: Mathias Weiersmueller > Assignee: Simon Steiner > Priority: Trivial > Attachments: p5.patch > > > 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. > -- This message was sent by Atlassian Jira (v8.20.10#820010)