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

AttributeDescriptionRequired
srcSource file name.Yes, or a nested resource collection
destfileDestination file to create.Exactly one of the two
zipfileZip 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.





Latest Courses