org.apache.anteater.util
Class JarUtil
java.lang.Object
|
+--org.apache.anteater.util.JarUtil
- public class JarUtil
- extends Object
Utilities for playing with jars and wars.
- Version:
- $Revision: 1.1 $ $Date: 2002/08/10 09:09:16 $
- Author:
- Jeff Turner
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JarUtil
public JarUtil()
unjar
public static void unjar(org.apache.tools.ant.Project proj,
String jarFile,
String dir)
throws FileNotFoundException,
IOException
- Unjar a jar file to a directory.
- Parameters:
proj
- Ant Project from which files are relative to.jarFile
- basedir-relative path to a jar filedir
- basedir-relative path to a directory in which to unjar the jar.
FileNotFoundException
IOException
unjar
public static void unjar(File jarFile,
File dir)
throws FileNotFoundException,
IOException
- Unjar a jar file to a directory.
- Parameters:
jarFile
- Jar filedir
- Directory in which to place jar contents. This will be created
if it doesn't exist.
FileNotFoundException
IOException
debug
protected static void debug(String msg)
extractFile
protected static void extractFile(File srcF,
File dir,
InputStream compressedInputStream,
String entryName,
Date entryDate,
boolean isDirectory)
throws IOException
IOException
main
public static void main(String[] args)
throws Exception
Exception
Ant Functional Tester -- see Project home page for details