Code Review
/
src
/
xds
/
xds-server.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Allow to set make arguments and rework build page.
[src/xds/xds-server.git]
/
webapp
/
src
/
app
/
build
/
build.component.ts
diff --git
a/webapp/src/app/build/build.component.ts
b/webapp/src/app/build/build.component.ts
index
a99a1fe
..
17e545f
100644
(file)
--- 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.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() {
}
ngOnInit() {
@@
-94,12
+97,14
@@
export class BuildComponent implements OnInit, AfterViewChecked {
this.cmdOutput += this._outputHeader();
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 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);
},
.subscribe(res => {
this.startTime.set(String(res.cmdID), t0);
},