]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
The output file is now deleted when an exception occurs when calling FOP from the...
authorJeremias Maerki <jeremias@apache.org>
Fri, 9 Dec 2005 07:44:09 +0000 (07:44 +0000)
committerJeremias Maerki <jeremias@apache.org>
Fri, 9 Dec 2005 07:44:09 +0000 (07:44 +0000)
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
status.xml

index 260559c1e1450966e000e90fb55dc7ceb73555b0..5f979bfa0851d3251b0b7802f488f4ce5e889f7e 100644 (file)
@@ -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);
         }
     }
index 3364904178b28c3ce8f3a6fffa1f95d576e4ab04..474d3ed128a3bd2b5a651729bb7c55caac48ac7a 100644 (file)
 
   <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