Home
last modified time | relevance | path

Searched refs:hapPath (Results 1 – 11 of 11) sorted by relevance

/developtools/packing_tool/adapter/ohos/
DConvertHapToBin.java40 public static boolean packHapTobin(final String hapPath, final String binPath) { in packHapTobin() argument
41 if (hapPath.isEmpty() || binPath.isEmpty()) { in packHapTobin()
46 if (!FileUtils.checkFileIsExists(hapPath)) { in packHapTobin()
50 Optional<String> absHapPath = FileUtils.getFormatedPath(hapPath); in packHapTobin()
99 String hapPath = ""; in main() local
105 hapPath = args[count + 1]; in main()
117 if (!hapPath.isEmpty() && !binPath.isEmpty()) { in main()
118 packHapTobin(hapPath, binPath); in main()
DCompressEntrance.java40 public static boolean pack(String hapPath, String packInfoPath, String outPath) { in pack() argument
41 if (hapPath == null || hapPath.isEmpty()) { in pack()
58 utility.setHapPath(hapPath); in pack()
83 public static String getHapSha256(String hapPath) { in getHapSha256() argument
84 if (!hapPath.endsWith(HAP_SUFFIX)) { in getHapSha256()
88 return FileUtils.getSha256(hapPath); in getHapSha256()
DUncompressEntrance.java181 public static boolean unpackHap(String hapPath, String outPath, boolean unpackApk) { in unpackHap() argument
182 if (hapPath == null || hapPath.isEmpty()) { in unpackHap()
194 utility.setHapPath(hapPath); in unpackHap()
365 public static UncompressResult parseHap(String hapPath) { in parseHap() argument
369 utility.setHapPath(hapPath); in parseHap()
409 …public static List<ResourceIndexResult> parseResource(String hapPath) throws BundleException, IOEx… in parseResource() argument
410 return getResourceFromHap(hapPath); in parseResource()
DUtility.java52 private String hapPath = ""; field in Utility
263 return hapPath; in getHapPath()
266 public void setHapPath(String hapPath) { in setHapPath() argument
267 if (!hapPath.startsWith(CMD_PREFIX)) { in setHapPath()
268 this.hapPath = hapPath; in setHapPath()
DCompressor.java972 for (String hapPath : fileList) { in compressAppMode()
973 pathToFile(utility, hapPath, NULL_DIR_NAME, false); in compressAppMode()
1042 for (String hapPath : fileList) { in compressAppModeForMultiProject()
1043 pathToFile(utility, hapPath, NULL_DIR_NAME, false); in compressAppModeForMultiProject()
1177 private static String readModlueNameFromHap(String hapPath) throws BundleException { in readModlueNameFromHap() argument
1179 File hapFile = new File(hapPath); in readModlueNameFromHap()
1180 if (isModuleHap(hapPath)) { in readModlueNameFromHap()
1205 for (String hapPath : utility.getFormattedHapList()) { in disposeHap()
1206 if (seletedHaps.contains(new File(hapPath).getName())) { in disposeHap()
1207 … LOG.error("Compressor::disposeHap file duplicated, file is " + new File(hapPath).getName() + "."); in disposeHap()
[all …]
DFileUtils.java201 public static void unzip(final String hapPath, final String destDir) { in unzip() argument
212 zipFile = new ZipFile(hapPath); in unzip()
488 public static String getSha256(String hapPath) { in getSha256() argument
492 File file = new File(hapPath); in getSha256()
DUncompress.java395 …static UncompressResult uncompressHapByPath(String deviceType, String hapPath) throws BundleExcept… in uncompressHapByPath() argument
398 if (isModuleHap(hapPath, compressResult)) { in uncompressHapByPath()
399 compressResult = unCompressModuleHap(deviceType, hapPath, MODULE_JSON); in uncompressHapByPath()
401 compressResult = uncompress(deviceType, hapPath, HARMONY_PROFILE); in uncompressHapByPath()
1486 public static boolean isModuleHap(String hapPath, UncompressResult compressResult) { in isModuleHap() argument
1489 zipFile = new ZipFile(new File(hapPath)); in isModuleHap()
DModuleJsonUtil.java850 public static List<String> parseFaEntry(String hapPath) throws BundleException { in parseFaEntry() argument
851 String configJson = FileUtils.getJsonInZips(new File(hapPath), CONFIG_JSON); in parseFaEntry()
886 public static List<String> parseStageEntry(String hapPath) throws BundleException { in parseStageEntry() argument
887 String moduleJson = FileUtils.getJsonInZips(new File(hapPath), MODULE_JSON); in parseStageEntry()
/developtools/ace_ets2bundle/compiler/src/
Dutils.ts332 const hapPath: string = toUnixPath(projectConfig.projectRootPath); constant
333 const tempFilePath: string = filePath.replace(hapPath, '');
354 const hapPath: string = toUnixPath(projectConfig.projectRootPath); constant
355 const tempFilePath: string = filePath.replace(hapPath, '');
Dark_utils.ts446 const hapPath: string = toUnixPath(projectConfig.projectRootPath); constant
447 const tempFilePath: string = filePath.replace(hapPath, '');
/developtools/packing_tool/
DREADME_zh.md301 | UncompressEntrance | UncomperssResult parseHap(String hapPath) | Java接口 | 接口功能…