org.apache.whirr.util
Class Tarball
java.lang.Object
org.apache.whirr.util.Tarball
public class Tarball
- extends Object
Tarball utility.
Method Summary |
static void |
createFromDirectory(String sourceDirectory,
String targetName)
Creates a tarball from the source directory and writes it into the target directory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Tarball
public Tarball()
createFromDirectory
public static void createFromDirectory(String sourceDirectory,
String targetName)
throws IOException
- Creates a tarball from the source directory and writes it into the target directory.
- Parameters:
sourceDirectory
- directory whose files will be added to the tarballtargetName
- directory where tarball will be written to
- Throws:
IOException
- when an exception occurs on creating the tarball
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.