本文整理匯總了TypeScript中webdeployment-common/ziputility.js.default.getArchivedEntries方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript js.default.getArchivedEntries方法的具體用法?TypeScript js.default.getArchivedEntries怎麽用?TypeScript js.default.getArchivedEntries使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類webdeployment-common/ziputility.js.default
的用法示例。
在下文中一共展示了js.default.getArchivedEntries方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: containsParamFile
export async function containsParamFile(webAppPackage: string ) {
var isParamFilePresent = false;
var pacakgeComponent = await zipUtility.getArchivedEntries(webAppPackage);
if ((pacakgeComponent["entries"].indexOf("parameters.xml") > -1) || (pacakgeComponent["entries"].indexOf("Parameters.xml") > -1)) {
isParamFilePresent = true;
}
tl.debug(tl.loc("Isparameterfilepresentinwebpackage0", isParamFilePresent));
return isParamFilePresent;
}
示例2: isMSDeployPackage
export async function isMSDeployPackage(webAppPackage: string ) {
var isParamFilePresent = false;
var pacakgeComponent = await zipUtility.getArchivedEntries(webAppPackage);
if (((pacakgeComponent["entries"].indexOf("parameters.xml") > -1) || (pacakgeComponent["entries"].indexOf("Parameters.xml") > -1)) &&
((pacakgeComponent["entries"].indexOf("systemInfo.xml") > -1) || (pacakgeComponent["entries"].indexOf("systeminfo.xml") > -1) || (pacakgeComponent["entries"].indexOf("SystemInfo.xml") > -1))) {
isParamFilePresent = true;
}
tl.debug("Is the package an msdeploy package : " + isParamFilePresent);
return isParamFilePresent;
}
示例3: isMSBuildPackage
public async isMSBuildPackage(): Promise<boolean> {
if(this._isMSBuildPackage == undefined) {
this._isMSBuildPackage = false;
if(this.getPackageType() != PackageType.folder) {
var pacakgeComponent = await zipUtility.getArchivedEntries(this._path);
if (((pacakgeComponent["entries"].indexOf("parameters.xml") > -1) || (pacakgeComponent["entries"].indexOf("Parameters.xml") > -1)) &&
((pacakgeComponent["entries"].indexOf("systemInfo.xml") > -1) || (pacakgeComponent["entries"].indexOf("systeminfo.xml") > -1)
|| (pacakgeComponent["entries"].indexOf("SystemInfo.xml") > -1))) {
this._isMSBuildPackage = true;
}
}
tl.debug("Is the package an msdeploy package : " + this._isMSBuildPackage);
}
return this._isMSBuildPackage;
}