|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Task org.jboss.portal.common.ant.Explode
Ant task that explode an archive.
Field Summary | |
private java.lang.String |
exclude
filename to exclude from decompression * |
private static java.util.Set |
extensions
Unzipped extensions. |
private java.io.File |
file
The exploded file. |
private java.lang.String |
name
The target optional name. |
private java.io.File |
todir
The target directory. |
Constructor Summary | |
Explode()
|
Method Summary | |
private static void |
ensureDirExist(Explode explode,
java.io.File dir)
When it returns the dir exists otherwise it throws a BuildException |
void |
execute()
|
static void |
explode(Explode explode,
java.lang.String name,
java.util.zip.ZipInputStream zip,
java.io.File todir,
java.lang.String exclude)
Explode a zip stream into a directory. |
void |
explode(java.io.File file,
java.io.File todir)
|
void |
setExclude(java.lang.String exclude)
|
void |
setFile(java.io.File file)
|
void |
setName(java.lang.String name)
|
void |
setTodir(java.io.File todir)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.util.Set extensions
private java.io.File file
private java.io.File todir
private java.lang.String name
private java.lang.String exclude
Constructor Detail |
public Explode()
Method Detail |
public void setExclude(java.lang.String exclude)
public void setFile(java.io.File file)
public void setTodir(java.io.File todir)
public void setName(java.lang.String name)
public void execute() throws BuildException
BuildException
public void explode(java.io.File file, java.io.File todir) throws BuildException, DirException
BuildException
DirException
public static void explode(Explode explode, java.lang.String name, java.util.zip.ZipInputStream zip, java.io.File todir, java.lang.String exclude) throws BuildException, DirException
explode
- used to logname
- the name of the created directoryzip
- the zip stream will not be closedtodir
- the parent directory
BuildException
DirException
private static void ensureDirExist(Explode explode, java.io.File dir) throws FileIsNotDirException, CannotCreateDirException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |