<gunzip>

The <gunzip> task is for extracting gzip files where the source file is gunzipped only if it is newer than the destination file. It is a simple task as illustrated by its table of attributes (see Table 4.39).

By default, the name of the destination file is the name of the specified source file minus the last extension—usually .gz. So, a source file of somefile.txt.gz will result in a gunzipped file called somefile.txt being output.

If, however, the destination is given, there are two possibilities. If the given destination is a directory, the naming rule described earlier applies, but this time the destination file is placed in the given directory. Otherwise, the destination file takes the name given by the dest attribute.

Table 4.39. ...

Get Ant Developer’s Handbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.