本文整理匯總了TypeScript中webdeployment-common/msdeployutility.js.default.getWebDeployErrorCode方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript js.default.getWebDeployErrorCode方法的具體用法?TypeScript js.default.getWebDeployErrorCode怎麽用?TypeScript js.default.getWebDeployErrorCode使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類webdeployment-common/msdeployutility.js.default
的用法示例。
在下文中一共展示了js.default.getWebDeployErrorCode方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: Error
if(checkParametersIfPresent(warDeploymentArgument, [
" -source:contentPath=\"'package.war'\"",
" -dest:contentPath=\"'/site/webapps/package.war'\""
])) {
console.log('ARGUMENT WITH WAR PACKAGE PASSED');
}
else {
throw new Error('ARGUMENT WITH WAR PACKAGE FAILED');
}
var overrideRetryArgument: string = msdeployUtility.getMSDeployCmdArgs('package.zip', 'webapp_name', {
publishUrl: 'http://webapp_name.scm.azurewebsites.net:443', userName: '$webapp_name', userPWD: 'webapp_password'
}, false, true, true, null, null, '-retryAttempts:11 -retryInterval:5000', false, false, true);
console.log(` * ARGUMENTS WITH WAR FILE: ${overrideRetryArgument}`);
if(checkParametersIfPresent(overrideRetryArgument, ['-retryAttempts:11', '-retryInterval:5000'])) {
console.log('ARGUMENT WITH OVERRIDE RETRY FLAG PASSED');
}
else {
throw new Error('ARGUMENT WITH OVERRIDE RETRY FLAG FAILED');
}
// msdeployutility getWebDeployErrorCode
for(var errorMessage in errorMessages) {
if(msdeployUtility.getWebDeployErrorCode(errorMessage) != errorMessages[errorMessage]) {
throw new Error('MSDEPLOY getWebDeployErrorCode failed');
}
}
console.log('MSDEPLOY getWebDeployErrorCode passed');