<follow>
The name refers to the 'follow mode' of the LESS utility (or the 'follow' option of the TAIL command), which does more or less the same.
For files, it is easy and fast to test whether a file has grown; for other resources it is not. For resources
url="..."
addressed by an HTTP URL}, the following optimizations are implemented:
Range
" request header.
The following attributes are mutually exclusive:
Also the following attributes and subelements are mutually exclusive:
Also the following attributes are mutually exclusive:
Name | Description |
---|---|
allowUserInteraction="..."
|
Whether the underlying URL should be examined in a context in which it makes sense to allow user interactions, such as popping up an authentication dialog. |
connectTimeout="..."
|
The timeout, in milliseconds, to be used when opening a communications link to the resource referenced by the
underlying URLConnection .
|
direct="..."
|
Configures a direct HTTP connection, and ignores any proxy configured with the http[s].proxy(Host|Port) system properties.
|
httpChunkLength="..."
|
Enables the "chunked streaming mode". |
httpContentLength="..."
|
Enables the "fixed length streaming mode". |
httpFollowRedirects="..."
|
Whether HTTP redirects (requests with response code 3xx) should be automatically followed. |
httpFollowRedirects2="..."
|
Similar to httpFollowRedirects="..." , but additionally allows for redirects across protocols,
e.g. from "http://host/index.html " to "https://host/index.html ".
|
httpProxy="..."
|
Configures an HTTP proxy, and overrides any proxy configured with the http[s].proxy(Host|Port) system
properties.
|
ifModifiedSince="..."
|
Set the value of the ifModifiedSince field of the underlying URLConnection .
|
readTimeout="..."
|
The read timeout, in milliseconds. |
socksProxy="..."
|
Configures a SOCKS proxy, and overrides any proxy configured with the http[s].proxy(Host|Port) system
properties.
|
url="..."
|
Designates the resource to access. |
useCaches="..."
|
Set the value of the useCaches field of the underlying URLConnection .
|
encoding="..."
|
If a is configured, then the data from the file is DECODED with this
encoding, then fed through the <filterchain> , and then ENCODED again.
|
failOnTimeout="..."
|
Whether the execution of the current target should fail or not if the file size does not change. |
file="..."
|
The file to monitor. |
outputFile="..."
|
Write the additional data to the named file. |
periodTime="..."
|
The period in milliseconds to check the file's size. |
stderr="..."
|
Write the additional data to STDERR. |
stdout="..."
|
Write the additional data to STDOUT. |
timeout="..."
|
The time (in seconds) when to give up if the file size does not change. |
Name | Description |
---|---|
<requestProperty>
|
Configures a "request property". |
<url>
|
Designates the resource to access. |
Any FilterChain | If given, then the data that is added to the file is fed through this filter chain, and the task will complete only when the filter chain produces some output. |
Default values are underlined.
encoding="encoding"
org.apache.tools.ant.types.FilterChain
is configured, then the data from the file is DECODED with this
encoding, then fed through the <filterchain>
, and then ENCODED again. Defaults to the system default
encoding. timeout="timeout|300"
failOnTimeout="true|false"
allowUserInteraction="true|false"
connectTimeout="milliseconds"
URLConnection
. If the timeout expires before the connection can be established, a
SocketTimeoutException
is raised. A timeout of zero is interpreted as an infinite timeout.URLConnection.setConnectTimeout(int)
readTimeout="milliseconds"
SocketTimeoutException
is raised. A timeout of zero is interpreted as an infinite timeout.URLConnection.setReadTimeout(int)
ifModifiedSince="point-of-time"
ifModifiedSince
field of the underlying URLConnection
. useCaches="true|false"
useCaches
field of the underlying URLConnection
.URLConnection.setUseCaches(boolean)
httpChunkLength="chunk-length"
httpContentLength="content-length"
httpFollowRedirects="true|false"
httpFollowRedirects2="true|false"
httpFollowRedirects="..."
, but additionally allows for redirects across protocols,
e.g. from "http://host/index.html
" to "https://host/index.html
". url="u-r-l"
direct="true|false"
http[s].proxy(Host|Port)
system properties. httpProxy="hostname:
port"
http[s].proxy(Host|Port)
system
properties. <url>
URL.openConnection()
The following attributes and subelements are mutually exclusive:
context="..."
<context>
context="context-url"
<context>
subelement described below) (defaults to none).
protocol="schema|http"
host="host|localhost"
port="port-number"
userInfo="user-info"
[ ':'
password]
". Defaults to none.
path="path|/"
query="query-string"
?
"). Can alternatively be configured through <formField>
subelements.
ref="anchor"
<formField>
value="..."
" attribute.
<context>
An alternative to context=...
; must appear at most once.
(The configuration options for this element are the same as described above.)
Copyright © 2019. All rights reserved.