X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=webapp%2Fsrc%2Fapp%2Fbuild%2Fbuild.component.ts;h=17e545f0c38dc1d5cebe765979f21e88a5fd09cd;hb=c53aef75b26a586bffa8ade44f8fb157d36566b7;hp=a99a1fe64d7e2c03b8902a88cac2a52f50f2a078;hpb=387641b4352d9f9da0d036db68a79e1fadbd4b5d;p=src%2Fxds%2Fxds-server.git diff --git a/webapp/src/app/build/build.component.ts b/webapp/src/app/build/build.component.ts index a99a1fe..17e545f 100644 --- a/webapp/src/app/build/build.component.ts +++ b/webapp/src/app/build/build.component.ts @@ -42,7 +42,10 @@ export class BuildComponent implements OnInit, AfterViewChecked { this.cmdOutput = ""; this.confValid = false; this.cmdInfo = ""; // TODO: to be remove (only for debug) - this.buildForm = fb.group({ subpath: this.subpathCtrl }); + this.buildForm = fb.group({ + subpath: this.subpathCtrl, + makeArgs: ["", Validators.nullValidator], + }); } ngOnInit() { @@ -94,12 +97,14 @@ export class BuildComponent implements OnInit, AfterViewChecked { this.cmdOutput += this._outputHeader(); + let sdkid = this.sdkSvr.getCurrentId(); + + let cmdArgs = args ? args : this.buildForm.value.makeArgs; + let t0 = performance.now(); this.cmdInfo = 'Start build of ' + prjID + ' at ' + t0; - let sdkid = this.sdkSvr.getCurrentId(); - - this.xdsSvr.make(prjID, this.buildForm.value.subpath, args, sdkid) + this.xdsSvr.make(prjID, this.buildForm.value.subpath, cmdArgs, sdkid) .subscribe(res => { this.startTime.set(String(res.cmdID), t0); },