support .tar.gz and .war