You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@batchee.apache.org by rm...@apache.org on 2015/11/21 01:42:59 UTC

incubator-batchee git commit: creating actual parent in CommonsCsvWriter

Repository: incubator-batchee
Updated Branches:
  refs/heads/master e37f9e1ba -> 7dc84fcb6


creating actual parent in CommonsCsvWriter


Project: http://git-wip-us.apache.org/repos/asf/incubator-batchee/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-batchee/commit/7dc84fcb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-batchee/tree/7dc84fcb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-batchee/diff/7dc84fcb

Branch: refs/heads/master
Commit: 7dc84fcb631e0919533bdf1317ed691480934c25
Parents: e37f9e1
Author: Romain Manni-Bucau <rm...@gmail.com>
Authored: Fri Nov 20 16:42:50 2015 -0800
Committer: Romain Manni-Bucau <rm...@gmail.com>
Committed: Fri Nov 20 16:42:50 2015 -0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/batchee/csv/CommonsCsvWriter.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-batchee/blob/7dc84fcb/extensions/commons-csv/src/main/java/org/apache/batchee/csv/CommonsCsvWriter.java
----------------------------------------------------------------------
diff --git a/extensions/commons-csv/src/main/java/org/apache/batchee/csv/CommonsCsvWriter.java b/extensions/commons-csv/src/main/java/org/apache/batchee/csv/CommonsCsvWriter.java
index 94c82c9..b759799 100644
--- a/extensions/commons-csv/src/main/java/org/apache/batchee/csv/CommonsCsvWriter.java
+++ b/extensions/commons-csv/src/main/java/org/apache/batchee/csv/CommonsCsvWriter.java
@@ -128,7 +128,7 @@ public class CommonsCsvWriter implements ItemWriter {
         final CSVFormat format = newFormat();
 
         final File file = new File(output);
-        if (!file.exists() && !file.getParentFile().mkdirs()) {
+        if (!file.getParentFile().exists() && !file.getParentFile().mkdirs()) {
             throw new IllegalStateException("Cant create " + file);
         }
         this.transactionalWriter = new TransactionalWriter(file, encoding, checkpoint);