From d9c826295e1a1f8469af50b81872eddb2fedfafb Mon Sep 17 00:00:00 2001 From: Dmitry Bolotin Date: Tue, 28 Nov 2017 01:34:12 +0300 Subject: [PATCH 1/4] Next development cycle v2.1.7 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index f868e6636..4c9163b28 100644 --- a/pom.xml +++ b/pom.xml @@ -32,7 +32,7 @@ com.milaboratory mixcr - 2.1.6 + 2.1.7-SNAPSHOT jar MiXCR From 5d522059c89861f7b307192e107dc101a562f335 Mon Sep 17 00:00:00 2001 From: Dmitry Bolotin Date: Wed, 6 Dec 2017 13:20:17 +0300 Subject: [PATCH 2/4] Fixes bug leading to IOException if report file not exists. This fixes #295 --- src/main/java/com/milaboratory/mixcr/cli/Util.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/com/milaboratory/mixcr/cli/Util.java b/src/main/java/com/milaboratory/mixcr/cli/Util.java index e4693091f..d27b788df 100644 --- a/src/main/java/com/milaboratory/mixcr/cli/Util.java +++ b/src/main/java/com/milaboratory/mixcr/cli/Util.java @@ -29,26 +29,21 @@ package com.milaboratory.mixcr.cli; import com.fasterxml.jackson.core.JsonProcessingException; -import com.milaboratory.mixcr.util.MiXCRVersionInfo; import com.milaboratory.util.GlobalObjectMappers; -import com.milaboratory.util.TimeUtils; import gnu.trove.map.hash.TIntObjectHashMap; import java.io.ByteArrayOutputStream; import java.io.File; -import java.io.FileOutputStream; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.channels.FileChannel; import java.nio.channels.FileLock; import java.nio.charset.StandardCharsets; -import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.StandardOpenOption; import java.text.DecimalFormat; import java.util.ArrayList; -import java.util.Date; import java.util.List; public final class Util { @@ -66,7 +61,7 @@ static void appendAtomically(String fileName, byte[] content) { } static void appendAtomically(File file, byte[] content) { - try (FileChannel channel = FileChannel.open(file.toPath(), StandardOpenOption.WRITE); + try (FileChannel channel = FileChannel.open(file.toPath(), StandardOpenOption.WRITE, StandardOpenOption.CREATE); FileLock lock = channel.lock()) { channel.position(channel.size()); channel.write(ByteBuffer.wrap(content)); From f96c70b8c3601e14a4dfd38d6406a0ba109e4108 Mon Sep 17 00:00:00 2001 From: Dmitry Bolotin Date: Wed, 6 Dec 2017 13:35:33 +0300 Subject: [PATCH 3/4] Changelog. --- CHANGELOG_CURRENT | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG_CURRENT b/CHANGELOG_CURRENT index e69de29bb..cedf4504b 100644 --- a/CHANGELOG_CURRENT +++ b/CHANGELOG_CURRENT @@ -0,0 +1 @@ +Fixes bug leading to IOException if report file not exists. (#295) \ No newline at end of file From 759b4e778433ce6462418b55b46313bb1199bb3a Mon Sep 17 00:00:00 2001 From: Dmitry Bolotin Date: Wed, 6 Dec 2017 13:37:00 +0300 Subject: [PATCH 4/4] Release v2.1.7 --- CHANGELOG | 6 ++++++ CHANGELOG_CURRENT | 1 - pom.xml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 195da3f57..8b11941e5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,4 +1,10 @@ +MiXCR 2.1.7 ( 6 Dec 2017) +======================== + +-- Fixes bug leading to IOException if report file not exists. (#295) + + MiXCR 2.1.6 (28 Nov 2017) ======================== diff --git a/CHANGELOG_CURRENT b/CHANGELOG_CURRENT index cedf4504b..e69de29bb 100644 --- a/CHANGELOG_CURRENT +++ b/CHANGELOG_CURRENT @@ -1 +0,0 @@ -Fixes bug leading to IOException if report file not exists. (#295) \ No newline at end of file diff --git a/pom.xml b/pom.xml index 4c9163b28..d7c12fcd5 100644 --- a/pom.xml +++ b/pom.xml @@ -32,7 +32,7 @@ com.milaboratory mixcr - 2.1.7-SNAPSHOT + 2.1.7 jar MiXCR