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.

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA