src/main/java/org/edgegallery/appstore/domain/model/releases/BasicInfo.java
public void rewriteManifestWithImage(File mfFile, String imgZipPath, String keyPath, String keyPwd) {
        try {
            readManifest(mfFile);
            String mfFilePath = mfFile.getCanonicalPath();
            String parentDir = mfFilePath.substring(0, mfFilePath.lastIndexOf(File.separator));
            LOGGER.info("rewrite manifest file, mfFilePath {}, parentDir {}", mfFilePath, parentDir);
            String content = buildManifestContent(parentDir, imgZipPath, keyPath, keyPwd);
            writeFile(mfFile, content);
        } catch (IOException e) {
            LOGGER.error("Exception while rewrite manifest file: {}", e.getMessage());
            throw new AppException("Exception while rewrite manifest file.",
                ResponseConst.RET_PARSE_FILE_EXCEPTION, mfFile.getName());
        }
    }
/**
     * rewrite manifest file with image zip file.
     *
     */
rewrite manifest file with image zip file.
rewrite manifest file with image zip file .
public void rewriteManifestWithImage(File mfFile, String imgZipPath, String keyPath, String keyPwd) {
        try {
            readManifest(mfFile);
            String mfFilePath = mfFile.getCanonicalPath();
            String parentDir = mfFilePath.substring(0, mfFilePath.lastIndexOf(File.separator));
            LOGGER.info("rewrite manifest file, mfFilePath {}, parentDir {}", mfFilePath, parentDir);
            String content = buildManifestContent(parentDir, imgZipPath, keyPath, keyPwd);
            writeFile(mfFile, content);
        } catch (IOException e) {
            LOGGER.error("Exception while rewrite manifest file: {}", e.getMessage());
            throw new AppException("Exception while rewrite manifest file.",
                ResponseConst.RET_PARSE_FILE_EXCEPTION, mfFile.getName());
        }
    }
public void rewriteManifestWithImage ( File mfFile , String imgZipPath , String keyPath , String keyPwd ) { try { readManifest ( mfFile ) ; String mfFilePath = mfFile . getCanonicalPath ( ) ; String parentDir = mfFilePath . substring ( 0 , mfFilePath . lastIndexOf ( File . separator ) ) ; LOGGER . info ( "rewrite manifest file, mfFilePath {}, parentDir {}" , mfFilePath , parentDir ) ; String content = buildManifestContent ( parentDir , imgZipPath , keyPath , keyPwd ) ; writeFile ( mfFile , content ) ; } catch ( IOException e ) { LOGGER . error ( "Exception while rewrite manifest file: {}" , e . getMessage ( ) ) ; throw new AppException ( "Exception while rewrite manifest file." , ResponseConst . RET_PARSE_FILE_EXCEPTION , mfFile . getName ( ) ) ; } }
rewrite manifest file with image zip file.
rewrite manifest file with image zip file .