Package com.jalios.jcms.tools.patch
Class WarInfo
java.lang.Object
com.jalios.jcms.tools.patch.WarInfo
Helper class to read informations about a JCMS war file or JCMS webapp.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Cleanup any temporary file from the file systemprotected voidfinalize()getOriginalSignature(String relativeFilePath) Retrieve the original signature of the specified file as available in the signature.xml file of this webapp.toString()
-
Constructor Details
-
WarInfo
Create a new WarInfo from the specified warFile.If the specified warFile is a file (vs a directory) it will immediately be unzipped in a temporary directory. You can later cleanup all temporary data using
cleanup()- Parameters:
warFile- a jcms war File or a path to a JCMS webapp directory- Throws:
Exception- if the specified file could not be unzipped or if it is not a JCMS webapp.
-
-
Method Details
-
getOriginalSignature
Retrieve the original signature of the specified file as available in the signature.xml file of this webapp.- Parameters:
relativeFilePath- a relative path egtypes/Article/doArticleFullDisplay.jsp- Returns:
- a signature, or null if could not be found
-
cleanup
public void cleanup()Cleanup any temporary file from the file system -
finalize
-
toString
-