This is a simple Ant Tar Download Archives. You can downloads the archive some-archive.tar.bz2.
<copy todir="test"> <tarfileset includes="lib/**"> <bzip2resource> <url url="http://example.org/dist/some-archive.tar.bz2"/> </bzip2resource> </tarfileset> </copy>