Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
keeleliin
keeleliin-wrapper
Commits
7490ec5a
Commit
7490ec5a
authored
Jul 30, 2015
by
priit
Browse files
Väljundile laiendi määramise võimalus
parent
b8595379
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/service/executor/localExecutor.js
View file @
7490ec5a
...
...
@@ -48,13 +48,13 @@ function LocalExecutor() {
process
.
stderr
.
on
(
'
data
'
,
function
(
data
)
{
logger
.
error
(
'
Got error:
'
+
data
);
response
.
isSuccess
=
false
;
response
.
errors
.
push
({
util
:
data
});
response
.
errors
.
push
({
util
:
data
.
toString
()
});
});
process
.
on
(
'
error
'
,
function
(
data
)
{
logger
.
error
(
'
Got error:
'
+
data
);
response
.
isSuccess
=
false
;
response
.
errors
.
push
({
util
:
data
});
response
.
errors
.
push
({
util
:
data
.
toString
()
});
});
process
.
on
(
'
close
'
,
function
(
code
,
signal
)
{
...
...
wrapper/tokenizer.js
View file @
7490ec5a
...
...
@@ -69,13 +69,15 @@ function Tokenizer(){
var
mapping
=
JSON
.
stringify
(
tokens
);
logger
.
debug
(
'
Failide mappimine on lõpetatud
'
);
session
.
addOutputFile
(
'
output
'
,
{
type
:
'
output
'
,
fileName
:
path
.
basename
(
model
.
outputPaths
.
outputPath1
),
filePath
:
model
.
outputPaths
.
outputPath1
,
contentType
:
mime
.
lookup
(
model
.
outputPaths
.
outputPath1
)
});
SessionService
.
storeToFile
(
session
.
id
,
mapping
,
{
extension
:
'
txt
'
},
function
(
error
,
mappingPath
)
{
session
.
addOutputFile
(
'
output
'
,
{
type
:
'
output
'
,
fileName
:
path
.
basename
(
model
.
outputPaths
.
outputPath1
),
filePath
:
model
.
outputPaths
.
outputPath1
,
contentType
:
mime
.
lookup
(
model
.
outputPaths
.
outputPath1
)
});
session
.
addOutputFile
(
'
mapping
'
,
{
type
:
'
mapping
'
,
fileName
:
path
.
basename
(
mappingPath
),
...
...
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