public class PatchUtils extends Object
| Constructor and Description |
|---|
PatchUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
applyServicepacksAndPatches(File servicepackDir,
File patchesDir,
File pluginsDir)
Here is the patch applying algorithm.
|
static void |
checkMD5Checksum(Map<String,JarInfo> latestPatchedJar,
File plugins,
boolean applyPatches) |
static boolean |
checkUpdatedJars(Map<String,JarInfo> latestPatchedJar) |
static void |
copyLatestServicepack(File source,
File target,
BufferedWriter bufWriter)
This will copy jar files on servicepacks to plugins directory
|
static File |
getMetaDirectory() |
static Map<String,JarInfo> |
getMostLatestJarsInServicepackAndPatches(File servicepackDir,
File parentPatchDir)
get the list of most latest jars in latest servicepack and patches-xxx directories
|
static File |
getPatchesLogsFile() |
static FilenameFilter |
getPatchFileNameFilter() |
static PatchInfo |
processPatches(File patchDirLogFile,
File servicepackDir,
File patchesDir) |
public static void applyServicepacksAndPatches(File servicepackDir, File patchesDir, File pluginsDir) throws IOException
servicepackDir - parent servicepack directory "repository/components/servicepacks"patchesDir - parent patch directory "repository/components/patches"pluginsDir - plugin directory "repository/components/plugins"IOExceptionpublic static void copyLatestServicepack(File source, File target, BufferedWriter bufWriter)
source - servicepack directorytarget - plugin directoryIOExceptionpublic static PatchInfo processPatches(File patchDirLogFile, File servicepackDir, File patchesDir) throws IOException
IOExceptionpublic static Map<String,JarInfo> getMostLatestJarsInServicepackAndPatches(File servicepackDir, File parentPatchDir) throws Exception
servicepackDir - servicepack directoryparentPatchDir - folder which contains the patches.Exceptionpublic static void checkMD5Checksum(Map<String,JarInfo> latestPatchedJar, File plugins, boolean applyPatches) throws Exception
latestPatchedJar - map of jar name and jar locationplugins - plugins directoryExceptionpublic static boolean checkUpdatedJars(Map<String,JarInfo> latestPatchedJar) throws Exception
Exceptionpublic static File getPatchesLogsFile()
public static File getMetaDirectory()
public static FilenameFilter getPatchFileNameFilter()
Copyright © 2018 WSO2 Inc. All rights reserved.