Commit 025eb85b by gechengyang

修复mx转mt的输出路径为空的缺陷

parent 3f19e221
...@@ -543,11 +543,15 @@ public abstract class AbstractMx2MtCreator implements Mx2MtCreator { ...@@ -543,11 +543,15 @@ public abstract class AbstractMx2MtCreator implements Mx2MtCreator {
str.setMtType(getMtType()); str.setMtType(getMtType());
str.setMessage(mtStr); str.setMessage(mtStr);
String outputFilePath = (String)context.get(Mx2MtContextIdentifier.MX_TO_MT_OUTPUT_FILE_PATH, true); String outputFilePath = (String)context.get(Mx2MtContextIdentifier.MX_TO_MT_OUTPUT_FILE_PATH, true);
File destFile=new File(outputFilePath); if(StringUtil.isNotEmpty(outputFilePath))
if(destFile!=null&&(!destFile.getParentFile().exists())){ {
destFile.getParentFile().mkdirs(); File destFile=new File(outputFilePath);
if(destFile!=null&&(!destFile.getParentFile().exists())){
destFile.getParentFile().mkdirs();
}
} }
if (StringUtil.isNotEmpty(outputFilePath)) { if (StringUtil.isNotEmpty(outputFilePath)) {
write(swiftMessage, new File(outputFilePath)); write(swiftMessage, new File(outputFilePath));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment