in src/tasks/tomcatDeployment/tomcatDeployment.ts [66:82]
export function execCurlCmdForDeployingWar(cmdArg: string): any {
return tl.exec(this.getCurlPath(), cmdArg, <tr.IExecOptions> { failOnStdErr: true })
.then((code) => {
var tomcatResponse = this.getTomcatResponse();
this.cleanTomcatResponseOutputFile();
if (tomcatResponse.indexOf("FAIL") == 0) {
tl.error(tomcatResponse);
tl.exit(1);
}
tl.debug(tomcatResponse);
tl.exit(code);
}).
fail((reason) => {
tl.error(reason);
tl.exit(1);
});
}