Package org.codehaus.plexus.util
Class Expand
- java.lang.Object
-
- org.codehaus.plexus.util.Expand
-
public class Expand extends java.lang.ObjectUnzip a file.- Since:
- Ant 1.1 @ant.task category="packaging" name="unzip" name="unjar" name="unwar"
- Version:
- $Id$
-
-
Constructor Summary
Constructors Constructor Description Expand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()Do the work.protected voidexpandFile(java.io.File srcF, java.io.File dir)Description of the Methodprotected voidextractFile(java.io.File srcF, java.io.File dir, java.io.InputStream compressedInputStream, java.lang.String entryName, java.util.Date entryDate, boolean isDirectory)Description of the MethodvoidsetDest(java.io.File d)Set the destination directory.voidsetOverwrite(boolean b)Should we overwrite files in dest, even if they are newer than the corresponding entries in the archive?voidsetSrc(java.io.File s)Set the path to zip-file.
-
-
-
Method Detail
-
execute
public void execute() throws java.lang.ExceptionDo the work.- Throws:
java.lang.Exception- Thrown in unrecoverable error.
-
expandFile
protected void expandFile(java.io.File srcF, java.io.File dir) throws java.lang.ExceptionDescription of the Method- Throws:
java.lang.Exception
-
extractFile
protected void extractFile(java.io.File srcF, java.io.File dir, java.io.InputStream compressedInputStream, java.lang.String entryName, java.util.Date entryDate, boolean isDirectory) throws java.lang.ExceptionDescription of the Method- Throws:
java.lang.Exception
-
setDest
public void setDest(java.io.File d)
Set the destination directory. File will be unzipped into the destination directory.- Parameters:
d- Path to the directory.
-
setSrc
public void setSrc(java.io.File s)
Set the path to zip-file.- Parameters:
s- Path to zip-file.
-
setOverwrite
public void setOverwrite(boolean b)
Should we overwrite files in dest, even if they are newer than the corresponding entries in the archive?
-
-