Name

get

Synopsis

Retrieves a file from a URL.

Attributes

dest (all, File, Y)

The local name to store the file as.

ignoreerrors (all, boolean, N)

If true, log errors but do not abort the build. Defaults to false.

src (all, URL, Y)

The URL of the remote file to retrieve.

usetimestamp (all, boolean, N)

If true, download only the file if the remote timestamp is newer than the local file. Works only with the HTTP protocol. When the file is downloaded, its timestamp is set to the timestamp on the remote machine. Defaults to false.

verbose (all, boolean, N)

When true, display a “.” for every 100 KB of data retrieved. Defaults to false.

Content

None.

Example Usage

Get the O’Reilly home page:

<get src="http://www.oreilly.com/" dest="${builddir}/oreilly_home.html"/>

If behind a firewall, specify proxy server configuration using the ANT_OPTS environment variable (as explained in Chapter 2) before running Ant.

Get Ant: The Definitive Guide 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.