aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/cli
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-12-09 07:44:09 +0000
committerJeremias Maerki <jeremias@apache.org>2005-12-09 07:44:09 +0000
commitc24934a366abc7d3909ad53713d0278b158ed02c (patch)
tree91ebda32a1b1117298f1819d3579e0fe695ab22d /src/java/org/apache/fop/cli
parent4d11c8f8e277f94fcabd7a51376b55414cae02c1 (diff)
downloadxmlgraphics-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
Diffstat (limited to 'src/java/org/apache/fop/cli')
-rw-r--r--src/java/org/apache/fop/cli/Main.java3
1 files changed, 3 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);
}
}