Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Decompress tgz files using Ant

Tags:

build

ant

How do we decompress TGZ file with Ant on Windows machine? I have been trying:

<gunzip  src="${ARTIFACT}/${platform}.tgz"/> 
<untar src="${ARTIFACT}/${platform}.tar" dest="${InstallDir}.${LICLIENT_VERSION}.test"/>

But it does not work.

like image 922
remo Avatar asked Feb 02 '11 19:02

remo


1 Answers

Try something like this

<target name="unpack">
    <untar src="test.tar.gz" dest="test" compression="gzip"/>
</target>
like image 188
Mark O'Connor Avatar answered Nov 01 '22 23:11

Mark O'Connor