Javatpoint Logo
Javatpoint Logo

Apache Ant Gzip Task

This task is used to collect files into a single unit. It packs a file using the GZip algorithm. It generates output file while extracting.

Apache Ant Gzip Task Attributes

Attribute Description Required
src Source file name. Yes, or a nested resource collection
destfile Destination file to create. Exactly one of the two
zipfile Zip file name.

Apache Ant Gzip Task Example

Use the below statement to into the project and target, it will create a tar file into the specified directory.





Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA