summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLvbo163 <lv.bo163@zte.com.cn>2017-09-28 10:49:17 +0800
committerLvbo163 <lv.bo163@zte.com.cn>2017-09-28 10:49:17 +0800
commit3ea4d9c46e82720e84dbad9126d6cc7cb3f50bff (patch)
tree51cb5380673efb81c4004c040ac45a343e880726
parent2f378c03352213a97e7f30a94fe6942ec6b38c6e (diff)
fix file already exist error
Issue-ID: SDC-412 Change-Id: I9719f5cb893d2cd0693e46a8598147d7b3c2b8d2 Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
-rw-r--r--sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/converter/Bpmn4Tosca2Bpmn.java2
1 files changed, 1 insertions, 1 deletions
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 7721eaa7..efa36c3f 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 class Bpmn4Tosca2Bpmn {
}
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);
}
}