|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas_lib.files.FileUtils
This class manages operation done many times by JOnAS on files, like copying them.
Method Summary | |
static void |
copyFile(java.io.File src,
java.io.File dest)
Copy a file |
static void |
copyFile(java.lang.String src,
java.lang.String dest)
Copy a file |
static void |
unpack(java.util.jar.JarFile packedJar,
java.io.File dest)
Unpack the source archive in a given directory and returns directory directory created. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void unpack(java.util.jar.JarFile packedJar, java.io.File dest) throws FileUtilsException
packedJar
- source JarFile to be unpackeddest
- the destination folder
FileUtilsException
- When unpack failspublic static void copyFile(java.lang.String src, java.lang.String dest) throws FileUtilsException
src
- source filedest
- dest file
FileUtilsException
- if the copy of the file failedpublic static void copyFile(java.io.File src, java.io.File dest) throws FileUtilsException
src
- source filedest
- dest file
FileUtilsException
- if the copy of the file failed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |