public class JumboPatchInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
Constructor and Description |
---|
JumboPatchInfo(java.io.File patchFile)
Read a JumboPatchInfo from the specified patchFile.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canBeAppliedToWar(WarInfo warInfo)
Check if this JumboPatch can be applied to the specified War
|
void |
cleanup()
Cleanup any temporary file from the file system
|
protected void |
finalize() |
java.util.Date |
getPatchDate() |
java.util.Date |
getSourceDate() |
java.lang.String |
getSourceName() |
java.util.Date |
getTargetDate() |
java.lang.String |
getTargetName() |
static void |
writeJumboPatchInformation(WarInfo war1,
WarInfo war2,
java.io.File patchDirectory) |
public static final java.lang.String REVISION
public JumboPatchInfo(java.io.File patchFile) throws java.lang.Exception
If the specified patchFile is a file (vs a directory) it
will immediately be unzipped in a temporary directory.
You can later cleanup all temporary data using cleanup()
patchFile
- a jcms jumbo patch File or a path to a jumbo patch directoryjava.lang.Exception
- if the specified file could not be unzipped or if it is not a JCMS jumbo patch.public java.util.Date getPatchDate()
public java.lang.String getSourceName()
public java.util.Date getSourceDate()
public java.lang.String getTargetName()
public java.util.Date getTargetDate()
public boolean canBeAppliedToWar(WarInfo warInfo)
warInfo
- a war information, must no be nullpublic static void writeJumboPatchInformation(WarInfo war1, WarInfo war2, java.io.File patchDirectory) throws java.lang.Exception
java.lang.Exception
public void cleanup()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
Copyright © 2001-2017 Jalios SA. All Rights Reserved.