From 43a3af665ebf122c97f3f79f44e71bd51a68c68e Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Mon, 22 Nov 2010 11:47:34 +0000 Subject: [PATCH] Fix compiler error: using test dep in main --- .../batch/item/file/FlatFileItemWriter.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/FlatFileItemWriter.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/FlatFileItemWriter.java index 3bdc2016f..492c67118 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/FlatFileItemWriter.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/file/FlatFileItemWriter.java @@ -18,7 +18,6 @@ package org.springframework.batch.item.file; import java.io.BufferedWriter; import java.io.File; -import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.Writer; @@ -27,7 +26,6 @@ import java.nio.channels.FileChannel; import java.nio.charset.UnsupportedCharsetException; import java.util.List; -import org.apache.commons.io.IOUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.batch.item.ExecutionContext; @@ -526,12 +524,6 @@ public class FlatFileItemWriter extends ExecutionContextUserSupport implement private void initializeBufferedWriter() throws IOException { File file = resource.getFile(); - if (file.exists() && append) { - FileInputStream input = new FileInputStream(file); - System.err.println(IOUtils.toString(input)); - System.err.println(input.getChannel().position()); - } - FileUtils.setUpOutputFile(file, restarted || append, shouldDeleteIfExists); os = new FileOutputStream(file.getAbsolutePath(), true);