Package org.codehaus.plexus.util
Class Expand
java.lang.Object
org.codehaus.plexus.util.Expand
Unzip a file.
- Since:
- Ant 1.1 @ant.task category="packaging" name="unzip" name="unjar" name="unwar"
- Author:
- costin@dnt.ro, Stefan Bodewig, Magesh Umasankar
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidexecute()Do the work.protected voidexpandFile(File srcF, File dir) protected voidextractFile(File srcF, File dir, InputStream compressedInputStream, String entryName, Date entryDate, boolean isDirectory) voidSet the destination directory.voidsetOverwrite(boolean b) voidSet the path to zip-file.
- 
Constructor Details- 
Expandpublic Expand()
 
- 
- 
Method Details- 
executeDo the work.- Throws:
- Exception- Thrown in unrecoverable error.
 
- 
expandFile- Throws:
- Exception
 
- 
extractFileprotected void extractFile(File srcF, File dir, InputStream compressedInputStream, String entryName, Date entryDate, boolean isDirectory) throws Exception - Throws:
- Exception
 
- 
setDestSet the destination directory. File will be unzipped into the destination directory.- Parameters:
- d- Path to the directory.
 
- 
setSrcSet the path to zip-file.- Parameters:
- s- Path to zip-file.
 
- 
setOverwritepublic void setOverwrite(boolean b) - Parameters:
- b- Should we overwrite files in dest, even if they are newer than the corresponding entries in the archive?
 
 
-