From: Jeremias Maerki Date: Fri, 9 Dec 2005 07:44:09 +0000 (+0000) Subject: The output file is now deleted when an exception occurs when calling FOP from the... X-Git-Tag: fop-0_91-beta~47 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c24934a366abc7d3909ad53713d0278b158ed02c;p=xmlgraphics-fop.git The output file is now deleted when an exception occurs when calling FOP from the command-line. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@355401 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/cli/Main.java b/src/java/org/apache/fop/cli/Main.java index 260559c1e..5f979bfa0 100644 --- a/src/java/org/apache/fop/cli/Main.java +++ b/src/java/org/apache/fop/cli/Main.java @@ -184,6 +184,9 @@ public class Main { if (options != null) { options.getLogger().error("Exception", e); } + if (options.getOutputFile() != null) { + options.getOutputFile().delete(); + } System.exit(1); } } diff --git a/status.xml b/status.xml index 336490417..474d3ed12 100644 --- a/status.xml +++ b/status.xml @@ -27,6 +27,10 @@ + + The output file is now deleted when an exception occurs when calling FOP from + the command-line. + Bugfix: Areas for table-cells that are broken over more than one page are now generated even if all its content is already painted on a previous page. This