commit | 3ea4d9c46e82720e84dbad9126d6cc7cb3f50bff | [log] [tgz] |
---|---|---|
author | Lvbo163 <lv.bo163@zte.com.cn> | Thu Sep 28 10:49:17 2017 +0800 |
committer | Lvbo163 <lv.bo163@zte.com.cn> | Thu Sep 28 10:49:17 2017 +0800 |
tree | 51cb5380673efb81c4004c040ac45a343e880726 | |
parent | 2f378c03352213a97e7f30a94fe6942ec6b38c6e [diff] |
fix file already exist error Issue-ID: SDC-412 Change-Id: I9719f5cb893d2cd0693e46a8598147d7b3c2b8d2 Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
diff --git a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/converter/Bpmn4Tosca2Bpmn.java b/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/converter/Bpmn4Tosca2Bpmn.java index 7721eaa..efa36c3 100644 --- a/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/converter/Bpmn4Tosca2Bpmn.java +++ b/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/converter/Bpmn4Tosca2Bpmn.java
@@ -54,7 +54,7 @@ } public static Path writeStringToFile(String content, Path targetPath) throws IOException { - return Files.write(targetPath, content.getBytes(), StandardOpenOption.CREATE_NEW); + return Files.write(targetPath, content.getBytes(), StandardOpenOption.CREATE); } }