Lines Matching refs:destDirPath
497 * @param destDirPath destination file path
501 private static void unzip(Utility utility, String srcPath, String destDirPath, String suffix)
513 if (destDirPath.isEmpty() || !UncompressVerify.isPathValid(destDirPath, false, null)) {
514 LOG.error("Uncompress::unzip destDirPath is invalid!");
515 throw new BundleException("Unzip failed, destDirPath is invalid");
517 unzipFromFile(utility, srcPath, destDirPath, suffix);
525 * @param destDirPath destination file path
529 private static void unzipFromFile(Utility utility, String srcPath, String destDirPath, String suffix)
560 String tempDir = destDirPath.replace(File.separator, LINUX_FILE_SEPARATOR);
634 * @param destDirPath destination file path
637 private static void dataTransferAllFiles(String srcPath, String destDirPath) throws BundleException {
651 String tempPath = destDirPath + LINUX_FILE_SEPARATOR + entry.getName();
669 private static void dataTransferFilesByApp(Utility utility, String srcPath, String destDirPath)
681 String filePath = destDirPath + LINUX_FILE_SEPARATOR + entry.getName();
692 unzip(utility, filePath, destDirPath, APK_SUFFIX);
698 repackHap(filePath, destDirPath, hapName, utility.getUnpackApk());
940 * @param destDirPath destination file path
945 private static void repackHap(String srcPath, String destDirPath, String fileName, String unpackApk)
947 if (srcPath.isEmpty() || destDirPath.isEmpty() || fileName.isEmpty()) {
948 LOG.error("Uncompress::repackHap srcPath, destDirPath or fileName is empty!");
949 throw new BundleException("Repack hap failed, srcPath, destDirPath or fileName is empty");
957 if (!UncompressVerify.isPathValid(destDirPath, false, null)) {
958 LOG.error("Uncompress::repackHap destDirPath is invalid!");
959 throw new BundleException("Repack hap failed, destDirPath is invalid");
962 String tempDir = destDirPath.replace(File.separator, LINUX_FILE_SEPARATOR) + LINUX_FILE_SEPARATOR +
965 packFilesByPath(tempDir, destDirPath, fileName, unpackApk);
974 * @param destDirPath destination file path
979 private static void packFilesByPath(String srcPath, String destDirPath, String fileName, String unpackApk)
981 if (srcPath.isEmpty() || destDirPath.isEmpty() || fileName.isEmpty()) {
982 LOG.error("Uncompress::packFilesByPath srcPath, destDirPath or fileName is empty!");
983 throw new BundleException("Pack files by path failed, srcPath, destDirPath or fileName is empty");
987 !UncompressVerify.isPathValid(destDirPath, false, null)) {
988 LOG.error("Uncompress::packFilesByPath srcPath or destDirPath is invalid!");
989 throw new BundleException("Pack files by path failed, srcPath or destDirPath is invalid");
1002 String zipPath = destDirPath + LINUX_FILE_SEPARATOR + fileName;