public class JumboPatchMaker
extends org.apache.commons.io.DirectoryWalker
Usage :
JumboPatchMaker jcms-6.0.war|jcms-6.0-directory jcms-6.0-sp2.war|jcms-6.0-sp2-directory patch-jcms-6.0-to-6.0-sp2.zipTechnical note regarding the process :
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
static int |
STATUS_BAD_PARAMETERS
JumboPatchMaker exit code if invalid parameters were specified
|
static int |
STATUS_ERROR
JumboPatchMaker exit code in case any error occurs
|
static int |
STATUS_OK
JumboPatchMaker exit code when everything went fine
|
Constructor and Description |
---|
JumboPatchMaker() |
Modifier and Type | Method and Description |
---|---|
boolean |
createPatch(java.io.File war1File,
java.io.File war2File,
java.io.File destPatchFile)
Create a patch from difference between war1 and war2 to the specified file.
|
protected boolean |
handleDirectory(java.io.File directory,
int depth,
java.util.Collection results) |
protected void |
handleFile(java.io.File file,
int depth,
java.util.Collection results) |
static void |
main(java.lang.String[] args)
JumboPatchMaker main enty point
|
public static final java.lang.String REVISION
public static final int STATUS_OK
public static final int STATUS_BAD_PARAMETERS
public static final int STATUS_ERROR
public boolean createPatch(java.io.File war1File, java.io.File war2File, java.io.File destPatchFile)
war1File
- a war file or webapp directory (must be a JCMS webapp)war2File
- a war file or webapp directory (must be a JCMS webapp with a higher version than war1File)destPatchFile
- the zip File in which patch will be created, must NOT exists.protected boolean handleDirectory(java.io.File directory, int depth, java.util.Collection results) throws java.io.IOException
handleDirectory
in class org.apache.commons.io.DirectoryWalker
java.io.IOException
protected void handleFile(java.io.File file, int depth, java.util.Collection results) throws java.io.IOException
handleFile
in class org.apache.commons.io.DirectoryWalker
java.io.IOException
public static void main(java.lang.String[] args)
args
- jumbo patch maker command line parameterCopyright © 2001-2018 Jalios SA. All Rights Reserved.