org.apache.geronimo.deployment.util
Class DeploymentUtil
java.lang.Object
org.apache.geronimo.deployment.util.DeploymentUtil
public final class DeploymentUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DUMMY_JAR_FILE
public static final File DUMMY_JAR_FILE
createTempDir
public static File createTempDir()
throws IOException
- Throws:
IOException
createTempFile
public static File createTempFile()
throws IOException
- Throws:
IOException
copyFile
public static void copyFile(File source,
File destination)
throws IOException
- Throws:
IOException
toTempFile
public static File toTempFile(JarFile jarFile,
String path)
throws IOException
- Throws:
IOException
toTempFile
public static File toTempFile(URL url)
throws IOException
- Throws:
IOException
readAll
public static String readAll(URL url)
throws IOException
- Throws:
IOException
toFile
public static File toFile(JarFile jarFile)
throws IOException
- Throws:
IOException
toFile
public static File toFile(JarFile jarFile,
String path)
throws IOException
- Throws:
IOException
createJarURL
public static URL createJarURL(JarFile jarFile,
String path)
throws MalformedURLException
- Throws:
MalformedURLException
createJarFile
public static JarFile createJarFile(File jarFile)
throws IOException
- Throws:
IOException
copyToPackedJar
public static void copyToPackedJar(JarFile inputJar,
File outputFile)
throws IOException
- Throws:
IOException
jarDirectory
public static void jarDirectory(File sourceDirecotry,
File destinationFile)
throws IOException
- Throws:
IOException
unzipToDirectory
public static void unzipToDirectory(ZipFile zipFile,
File destDir)
throws IOException
- Throws:
IOException
recursiveDelete
public static boolean recursiveDelete(File root,
Collection unableToDeleteCollection)
recursiveDelete
public static boolean recursiveDelete(File root)
listRecursiveFiles
public static Collection listRecursiveFiles(File file)
listRecursiveFiles
public static void listRecursiveFiles(File file,
Collection collection)
flush
public static void flush(OutputStream thing)
flush
public static void flush(Writer thing)
close
public static void close(JarFile thing)
close
public static void close(InputStream thing)
close
public static void close(OutputStream thing)
close
public static void close(Reader thing)
close
public static void close(Writer thing)
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.