<untar>

Purpose/Function

Unpack a tape archive (tar) file to the given destination. Wraps the UNIX shell command.

Attributes

NAME

TYPE

DEFAULT VALUE

DESCRIPTION

tarPath

java.io.File

required

path of the tar file

destinationDir

java.io.File

null

directory in which to execute the command (defaults to user dir)

verbose

boolean

false

add "v" to the command

zip

boolean

false

add "z" to the command

altShellPaths

java.util.List

null

additional places to look for the shell executable on this host (defaults are /bin/sh and /usr/bin/sh)

The destination directory must exist of the task will fail.

Elements

None.

ReturnValues

None.

Examples

...
<untar tarPath="/tmp/ogre.tar.gz" destinationDir="/tmp/copies" zip="true"/>
...
  • No labels