Author: jicken
Date: 2011-06-11 08:55:30 -0400 (Sat, 11 Jun 2011)
New Revision: 10791
Modified:
branches/Branch_2_2_EAP_export_tool/src/main/org/hornetq/core/persistence/tools/ExportData.java
Log:
deleted file before exporting otherwise it would append the output
Modified:
branches/Branch_2_2_EAP_export_tool/src/main/org/hornetq/core/persistence/tools/ExportData.java
===================================================================
---
branches/Branch_2_2_EAP_export_tool/src/main/org/hornetq/core/persistence/tools/ExportData.java 2011-06-09
19:59:52 UTC (rev 10790)
+++
branches/Branch_2_2_EAP_export_tool/src/main/org/hornetq/core/persistence/tools/ExportData.java 2011-06-11
12:55:30 UTC (rev 10791)
@@ -37,6 +37,7 @@
PrintStream output = System.out;
if (args.length == 3) {
try {
+ new File(args[2]).delete();
output = new PrintStream(new FileOutputStream(args[2],true));
} catch (FileNotFoundException e) {
e.printStackTrace();