<get>

The <get> task enables you to get a file from a given URL. One such example of how you could leverage this task is hitting a URL that in turn generates an SMS/email to notify someone something has gone wrong (or right). This task could also be used for something as simple as downloading an external resource.

Table 4.38 gives a list of the task’s associated attributes.

Table 4.38. Table of <get> Attributes
Attributes Description
Required
dest The destination for the retrieved file.
src The source URL from which to get the file.
Optional
ignoreerrors If true, errors will be logged but will not stop the task executing to the end.
password Specifies the password for basic HTTP authentication. Should be specified along with the username attribute. ...

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.