|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.io.DirectoryWalker com.jalios.jcms.tools.patch.JumboPatchMaker
public class JumboPatchMaker
Create a "jumbo" patch suitable for easier migration between maintenance revision of JCMS.
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 :
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.commons.io.DirectoryWalker |
---|
org.apache.commons.io.DirectoryWalker.CancelException |
Field Summary | |
---|---|
static 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 Summary | |
---|---|
JumboPatchMaker()
|
Method Summary | |
---|---|
boolean |
createPatch(File war1File,
File war2File,
File destPatchFile)
Create a patch from difference between war1 and war2 to the specified file. |
protected boolean |
handleDirectory(File directory,
int depth,
Collection results)
|
protected void |
handleFile(File file,
int depth,
Collection results)
|
static void |
main(String[] args)
JumboPatchMaker main enty point |
Methods inherited from class org.apache.commons.io.DirectoryWalker |
---|
checkIfCancelled, handleCancelled, handleDirectoryEnd, handleDirectoryStart, handleEnd, handleIsCancelled, handleRestricted, handleStart, walk |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
public static final int STATUS_OK
public static final int STATUS_BAD_PARAMETERS
public static final int STATUS_ERROR
Constructor Detail |
---|
public JumboPatchMaker()
Method Detail |
---|
public boolean createPatch(File war1File, File war2File, 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(File directory, int depth, Collection results) throws IOException
handleDirectory
in class org.apache.commons.io.DirectoryWalker
IOException
protected void handleFile(File file, int depth, Collection results) throws IOException
handleFile
in class org.apache.commons.io.DirectoryWalker
IOException
public static void main(String[] args)
args
- jumbo patch maker command line parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |