org.apache.tools.ant.taskdefs
Class Untar

java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.Task
              |
              +--org.apache.tools.ant.taskdefs.Untar

public class Untar
extends Task

Untar a file. Heavily based on the Expand task.

Author:
Stefan Bodewig

Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
Untar()
           
 
Method Summary
 void execute()
          Do the work.
 void setDest(java.io.File d)
          Set the destination directory.
 void setOverwrite(boolean b)
          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 tar-file.
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Untar

public Untar()
Method Detail

execute

public void execute()
             throws BuildException
Do the work.
Overrides:
execute in class Task
Throws:
BuildException - Thrown in unrecoverable error.

setDest

public void setDest(java.io.File d)
Set the destination directory. File will be untared into the destination directory.
Parameters:
d - Path to the directory.

setSrc

public void setSrc(java.io.File s)
Set the path to tar-file.
Parameters:
s - Path to tar-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?


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.