From 3ef2ddd5cb1ee57317ffb757aceb86355a612a17 Mon Sep 17 00:00:00 2001
From: Roberto Sánchez <roberto.sanchez@curisit.net>
Date: Mon, 24 Feb 2014 14:55:10 +0000
Subject: [PATCH] #593 feature - Changed CRC logo inclusion in request to optional, the server will check if logo is mandatory or not
---
src/patch/java/net/curisit/securis/LicenseGenerator.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/patch/java/net/curisit/securis/LicenseGenerator.java b/src/patch/java/net/curisit/securis/LicenseGenerator.java
index 72da188..f84f980 100644
--- a/src/patch/java/net/curisit/securis/LicenseGenerator.java
+++ b/src/patch/java/net/curisit/securis/LicenseGenerator.java
@@ -80,7 +80,7 @@
byte[] json;
try {
json = JsonUtils.toJSON(signedLic, true).getBytes("utf-8");
- Files.write(Paths.get(file.toURI()), json, StandardOpenOption.CREATE);
+ Files.write(Paths.get(file.toURI()), json, StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING);
} catch (UnsupportedEncodingException e) {
log.error("Error creating json doc from license: " + license, e);
throw new SeCurisException("Error creating json doc from license: " + license, e);
--
Gitblit v1.3.2