|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas.ear.lib.EarFileManager
JOnAS Ear File manager. This class provides a way for managing the EAR files.
Method Summary | |
static java.lang.String |
fileToTimeStampDir(java.net.URL urlFileName)
Give the unpack destination directory of the specified file. |
protected static boolean |
isUnpackedEar(java.net.URL urlFileName,
java.net.URL urlDirName)
true If an unpacked directory has the same timestamp than the EAR file, false otherwise. |
static java.net.URL |
unpackEar(java.net.URL urlFileName,
java.net.URL urlDirName)
Unpack the given EAR file to the specified directory. |
static java.net.URL |
unpackEar(java.net.URL urlFileName,
java.net.URL urlDirName,
boolean useTimeStamp)
Unpack the given EAR file to the specified directory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
protected static boolean isUnpackedEar(java.net.URL urlFileName, java.net.URL urlDirName) throws EarFileManagerException
urlFileName
- the url of the name of the EAR file (ends with the
.ear extension).urlDirName
- the url of the directory where the file must be
unpacked.
EarFileManagerException
- if the file doesn't existpublic static java.lang.String fileToTimeStampDir(java.net.URL urlFileName) throws EarFileManagerException
urlFileName
- the url of the name of the EAR file (ends with the
.ear extension).
EarFileManagerException
- if we can't get the timestamp.public static java.net.URL unpackEar(java.net.URL urlFileName, java.net.URL urlDirName) throws EarFileManagerException
urlFileName
- the url of the name of the EAR file to unpack.urlDirName
- the url of the destination directory where is unpacked
the EAR file.
EarFileManagerException
- if we can't unpack the file.public static java.net.URL unpackEar(java.net.URL urlFileName, java.net.URL urlDirName, boolean useTimeStamp) throws EarFileManagerException
urlFileName
- the url of the name of the EAR file to unpack.urlDirName
- the url of the destination directory where is unpacked
the EAR file.useTimeStamp
- use timestamping for unpacking the EAR or not
EarFileManagerException
- if we can't unpack the file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |