Class PatchApplyingUtil


  • public class PatchApplyingUtil
    extends Object
    This utility class contains reusable methods for patch applying
    • Constructor Detail

      • PatchApplyingUtil

        public PatchApplyingUtil()
    • Method Detail

      • buildPatch

        public static String buildPatch​(String patchName,
                                        String jarName,
                                        String carbonHome)
                                 throws IOException
        This method will build a jar with different md5sum and build the patch, then copy patch to the repository, components, patches.
        Parameters:
        patchName - - Patch name eg: patch0005
        jarName - - Jar file name without the version and extension (eg: org.wso2.carbon.utils_) this jar file will be used to create the patch
        carbonHome - - The location where the carbon server zip file is extracted
        Returns:
        fileNameWithExt - Returns the copied jar file name as a patch
        Throws:
        IOException