Untar / Unzip *.tar.xz with ANT
问题 I want to extract a tarball-file with *.tar.xz with ant. But I can only find, bunzip2, gunzip, unzip and untar as goals in ant and none of it seems to work. So how can I expand a tarball-file with *.tar.xz with ant? 回答1: The XZ format is not supported by the default Ant distribution, you'll need the Apache Compress Antlib. Download the full Antlib with all the dependencies from here (add the three jars ant-compress , common-compress , xz in the lib directory of your ant), and use this task: