C.78 UntarTask

The UntarTask unpacks one or more tar archives.

Table C.107: Attributes

NameTypeDescriptionDefaultRequired
fileStringArchive filenamen/aNo
todirStringDirectory to unpack the archive(s) tononeYes
removepathStringPath to remove from files in the archive(s)noneNo
forceExtractBooleanWhen set to false, only extract files if the destination does not exist yet or is older than the archive. When set to true, always extract files.falseNo

C.78.1 Example

<untar file="testtar.tar.gz" todir="dest">
  <fileset dir=".">
    <include name="*.tar.gz"/>
    <include name="*.tar"/>
  </fileset>
</untar>

C.78.2 Supported Nested Tags