fix file already exist error 77/16177/1
authorLvbo163 <lv.bo163@zte.com.cn>
Thu, 28 Sep 2017 02:49:17 +0000 (10:49 +0800)
committerLvbo163 <lv.bo163@zte.com.cn>
Thu, 28 Sep 2017 02:49:17 +0000 (10:49 +0800)
Issue-ID: SDC-412

Change-Id: I9719f5cb893d2cd0693e46a8598147d7b3c2b8d2
Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/converter/Bpmn4Tosca2Bpmn.java

index 7721eaa..efa36c3 100644 (file)
@@ -54,7 +54,7 @@ public class Bpmn4Tosca2Bpmn {
     }\r
 \r
     public static Path writeStringToFile(String content, Path targetPath) throws IOException {\r
-        return Files.write(targetPath, content.getBytes(), StandardOpenOption.CREATE_NEW);\r
+        return Files.write(targetPath, content.getBytes(), StandardOpenOption.CREATE);\r
     }\r
 \r
 }\r