diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-12-09 07:44:09 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-12-09 07:44:09 +0000 |
commit | c24934a366abc7d3909ad53713d0278b158ed02c (patch) | |
tree | 91ebda32a1b1117298f1819d3579e0fe695ab22d | |
parent | 4d11c8f8e277f94fcabd7a51376b55414cae02c1 (diff) | |
download | xmlgraphics-fop-c24934a366abc7d3909ad53713d0278b158ed02c.tar.gz xmlgraphics-fop-c24934a366abc7d3909ad53713d0278b158ed02c.zip |
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
-rw-r--r-- | src/java/org/apache/fop/cli/Main.java | 3 | ||||
-rw-r--r-- | status.xml | 4 |
2 files changed, 7 insertions, 0 deletions
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 @@ -28,6 +28,10 @@ <changes> <release version="FOP Trunk"> <action context="Code" dev="JM" type="fix"> + The output file is now deleted when an exception occurs when calling FOP from + the command-line. + </action> + <action context="Code" dev="JM" type="fix"> 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 fixes strange effects like a table grid that is not completely painted. |