Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
swiftMtMx
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
isc-v3.1-tmp
swiftMtMx
Commits
025eb85b
Commit
025eb85b
authored
Aug 29, 2023
by
gechengyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复mx转mt的输出路径为空的缺陷
parent
3f19e221
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
AbstractMx2MtCreator.java
...java/com/brilliance/swift/mx2mt/AbstractMx2MtCreator.java
+7
-3
No files found.
swiftCore/src/main/java/com/brilliance/swift/mx2mt/AbstractMx2MtCreator.java
View file @
025eb85b
...
...
@@ -543,11 +543,15 @@ public abstract class AbstractMx2MtCreator implements Mx2MtCreator {
str
.
setMtType
(
getMtType
());
str
.
setMessage
(
mtStr
);
String
outputFilePath
=
(
String
)
context
.
get
(
Mx2MtContextIdentifier
.
MX_TO_MT_OUTPUT_FILE_PATH
,
true
);
File
destFile
=
new
File
(
outputFilePath
);
if
(
destFile
!=
null
&&(!
destFile
.
getParentFile
().
exists
())){
destFile
.
getParentFile
().
mkdirs
();
if
(
StringUtil
.
isNotEmpty
(
outputFilePath
))
{
File
destFile
=
new
File
(
outputFilePath
);
if
(
destFile
!=
null
&&(!
destFile
.
getParentFile
().
exists
())){
destFile
.
getParentFile
().
mkdirs
();
}
}
if
(
StringUtil
.
isNotEmpty
(
outputFilePath
))
{
write
(
swiftMessage
,
new
File
(
outputFilePath
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment