org.codehaus.cargo.util
Class JarUtils
java.lang.Object
org.codehaus.cargo.util.JarUtils
public final class JarUtils
- extends Object
Some utility classes for manipulating JAR files.
- Version:
- $Id $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JarUtils
public JarUtils()
createJarFromDirectory
protected void createJarFromDirectory(File root,
File directory,
JarOutputStream jarStream)
throws IOException
- Create a jar file from a particular directory.
- Parameters:
root
- in the root directorydirectory
- in the directory we are addingjarStream
- the jar stream to be added to
- Throws:
IOException
- on IOException
createJarFromDirectory
public File createJarFromDirectory(String directory,
File outputJar)
throws IOException
- Create a JAR file from a directory, recursing through children.
- Parameters:
directory
- in directory sourceoutputJar
- in file to output the jar data to
- Returns:
- out File that was generated
- Throws:
IOException
- when there is an I/O exception
Copyright © 2004-2012 Codehaus. All Rights Reserved.