Skip to content

Commit b0d065a

Browse files
committed
fixed issue #261 - incorrect mlcp command line
1 parent a5f1451 commit b0d065a

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

quick-start/src/main/ui/app/mlcp-ui/mlcp-ui.ts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,17 @@ export class MlcpUi {
454454
this.mlcp = {};
455455
this.addMlcpOption(options, 'import', null, false);
456456
this.addMlcpOption(options, 'mode', 'local', false);
457+
458+
let host = this.envService.settings.host;
459+
let port = this.envService.settings.stagingPort;
460+
let username = this.envService.settings.username;
461+
462+
463+
this.addMlcpOption(options, 'host', host, false);
464+
this.addMlcpOption(options, 'port', port, false);
465+
this.addMlcpOption(options, 'username', username, false);
466+
this.addMlcpOption(options, 'password', '*****', false);
467+
457468
this.addMlcpOption(options, 'input_file_path', this.inputFilePath, true);
458469

459470
_.each(this.groups, (group) => {
@@ -491,14 +502,7 @@ export class MlcpUi {
491502
updateMlcpCommand(): string {
492503
let mlcpCommand: string = 'mlcp';
493504
mlcpCommand += (navigator.appVersion.indexOf('Win') !== -1) ? '.bat' : '.sh';
494-
495-
let host = this.envService.settings.host;
496-
let port = this.envService.settings.stagingPort;
497-
let username = this.envService.settings.username;
498-
499-
let otherOptions = this.buildMlcpOptions().join(' ');
500-
mlcpCommand +=
501-
` -host ${host} -port ${port} -username ${username} -password ***** ${otherOptions}`;
505+
mlcpCommand += ' ' + this.buildMlcpOptions().join(' ');
502506

503507
this.mlcpCommand = mlcpCommand;
504508
return mlcpCommand;

0 commit comments

Comments
 (0)