Skip to content
Permalink
Browse files
fix #24翻译师 deflated.json 文件路径问题
  • Loading branch information
creasy2010 committed Jun 14, 2018
1 parent 2a5d4bc commit b5bf41a68d1130f3162663eacc6544ec534ce8ac
Showing 1 changed file with 6 additions and 4 deletions.
@@ -38,17 +38,19 @@ export async function extra(extraParam: IDubboExtInfo): Promise<IExtraResult> {

let err: string = '';
let jarDir: string = '';
execCmd.stdout.on('data', rowData => {
let output = rowData.toString();
execCmd.stdout.setEncoding("utf8");
execCmd.stderr.setEncoding("utf8");
execCmd.stdout.on('data', (rowData:Buffer) => {
let output = rowData.toString("utf8");
console.log(output);
if (output.includes(startFlag)) {
let beginIndex = output.indexOf(startFlag) + startFlag.length;
jarDir = output.substring(beginIndex).trim();
}
});

execCmd.stderr.on('data', rowData => {
err += rowData.toString();
execCmd.stderr.on('data', (rowData:Buffer) => {
err += rowData.toString("utf8");
console.log(err);
});

0 comments on commit b5bf41a

Please sign in to comment.