|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.maven.util.Expand
Unzip a file.
| Constructor Summary | |
Expand()
|
|
| Method Summary | |
void |
execute()
Do the work. |
protected void |
expandFile()
Expand a file. |
protected void |
extractFile(java.io.InputStream compressedInputStream,
java.lang.String entryName,
java.util.Date entryDate,
boolean isDirectory)
Extract a file. |
void |
setDest(java.io.File d)
Set the destination directory. |
void |
setFileUtils(org.apache.tools.ant.util.FileUtils utils)
|
void |
setOverwrite(boolean shouldOverwrite)
Should we overwrite files in dest, even if they are newer than the corresponding entries in the archive? |
void |
setSrc(java.io.File s)
Set the path to zip-file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Expand()
| Method Detail |
public void execute()
throws java.io.IOException
java.io.IOException - If an error occurs.
protected void expandFile()
throws java.io.IOException
java.io.IOException
protected void extractFile(java.io.InputStream compressedInputStream,
java.lang.String entryName,
java.util.Date entryDate,
boolean isDirectory)
throws java.io.IOException
compressedInputStream - The input stream.entryName - The entry name.entryDate - The entry date.isDirectory - Flag indicating if is directory.
java.io.IOException - If an error occurs while attempting to
extract the file.public void setDest(java.io.File d)
d - Path to the directory.public void setSrc(java.io.File s)
s - Path to zip-file.public void setOverwrite(boolean shouldOverwrite)
shouldOverwrite - true to indicate that files
should be overwritten, otherwise false.public void setFileUtils(org.apache.tools.ant.util.FileUtils utils)
utils -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||