From c24934a366abc7d3909ad53713d0278b158ed02c Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Fri, 9 Dec 2005 07:44:09 +0000 Subject: [PATCH] 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 --- src/java/org/apache/fop/cli/Main.java | 3 +++ status.xml | 4 ++++ 2 files changed, 7 insertions(+) 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 -- 2.39.5