| java.lang.Object org.objectweb.jonas_lib.deployment.work.FileManager org.objectweb.jonas_lib.deployment.work.EarFileManager
EarFileManager | public class EarFileManager extends FileManager (Code) | | JOnAS Ear File manager. This class provides a way for managing the EAR files.
author: Florent Benoit author: Ludovic Bert author: Nicolas Van Caneghem Allow the author: deployment of an exploded ear |
Method Summary | |
protected static boolean | isUnpackedEar(URL urlFileName, URL urlDirName) true If an unpacked directory has the same timestamp than the EAR file,
false otherwise.
Parameters: urlFileName - the url of the name of the EAR file (ends with the.ear extension). Parameters: urlDirName - the url of the directory where the file must beunpacked. | public static URL | unpackEar(URL urlFileName, URL urlDirName) Unpack the given EAR file to the specified directory.
Parameters: urlFileName - the url of the name of the EAR file to unpack. Parameters: urlDirName - the url of the destination directory where is unpackedthe EAR file. | public static URL | unpackEar(URL urlFileName, URL urlDirName, boolean useTimeStamp) Unpack the given EAR file to the specified directory. |
isUnpackedEar | protected static boolean isUnpackedEar(URL urlFileName, URL urlDirName) throws FileManagerException(Code) | | true If an unpacked directory has the same timestamp than the EAR file,
false otherwise.
Parameters: urlFileName - the url of the name of the EAR file (ends with the.ear extension). Parameters: urlDirName - the url of the directory where the file must beunpacked. true If an unpacked directory has the same timestamp than the EARfile, false otherwise. throws: FileManagerException - if the file doesn't exist |
unpackEar | public static URL unpackEar(URL urlFileName, URL urlDirName) throws FileManagerException(Code) | | Unpack the given EAR file to the specified directory.
Parameters: urlFileName - the url of the name of the EAR file to unpack. Parameters: urlDirName - the url of the destination directory where is unpackedthe EAR file. the url of the unpacked directory throws: FileManagerException - if we can't unpack the file. |
unpackEar | public static URL unpackEar(URL urlFileName, URL urlDirName, boolean useTimeStamp) throws FileManagerException(Code) | | Unpack the given EAR file to the specified directory.
Parameters: urlFileName - the url of the name of the EAR file to unpack. Parameters: urlDirName - the url of the destination directory where is unpackedthe EAR file. Parameters: useTimeStamp - use timestamping for unpacking the EAR or not the url of the unpacked directory throws: FileManagerException - if we can't unpack the file. |
|
|