org.apache.tools.ant.types
public class RedirectorElement extends DataType
Redirector
.Since: Ant 1.6.2
Method Summary | |
---|---|
void | addConfiguredErrorMapper(Mapper errorMapper)
Add the error file mapper. |
void | addConfiguredInputMapper(Mapper inputMapper)
Add the input file mapper. |
void | addConfiguredOutputMapper(Mapper outputMapper)
Add the output file mapper. |
void | configure(Redirector redirector)
Configure the specified Redirector . |
void | configure(Redirector redirector, String sourcefile)
Configure the specified Redirector
for the specified sourcefile. |
FilterChain | createErrorFilterChain()
Create a nested error FilterChain . |
FilterChain | createInputFilterChain()
Create a nested input FilterChain . |
protected Mapper | createMergeMapper(File destfile)
Create a merge mapper pointing to the specified destination file. |
FilterChain | createOutputFilterChain()
Create a nested output FilterChain . |
protected void | dieOnCircularReference(Stack stk, Project p)
Overrides the version of DataType to recurse on all DataType
child elements that may have been added. |
void | setAlwaysLog(boolean alwaysLog)
If true, (error and non-error) output will be "teed", redirected
as specified while being sent to Ant's logging mechanism as if no
redirection had taken place. |
void | setAppend(boolean append)
Whether output should be appended to or overwrite an existing file.
|
void | setCreateEmptyFiles(boolean createEmptyFiles)
Whether output and error files should be created even when empty.
|
void | setError(File error)
Set the file to which standard error is to be redirected. |
void | setErrorEncoding(String errorEncoding)
Set the error encoding.
|
void | setErrorProperty(String errorProperty)
Property name whose value should be set to the error of
the process. |
void | setInput(File input)
Set the input to use for the task. |
void | setInputEncoding(String inputEncoding)
Set the input encoding. |
void | setInputString(String inputString)
Set the string to use as input |
void | setLogError(boolean logError)
Controls whether error output of exec is logged. |
void | setLogInputString(boolean logInputString)
Set whether to include the value of the input string in log messages.
|
void | setOutput(File out)
File the output of the process is redirected to. |
void | setOutputEncoding(String outputEncoding)
Set the output encoding. |
void | setOutputProperty(String outputProperty)
Property name whose value should be set to the output of
the process. |
void | setRefid(Reference r)
Make this instance in effect a reference to another instance.
|
protected File[] | toFileArray(String[] name)
Return a File[] from the specified set of filenames. |
Parameters: errorMapper Mapper
.
Parameters: inputMapper Mapper
.
Parameters: outputMapper Mapper
.
Redirector
.Parameters: redirector Redirector
.
Redirector
for the specified sourcefile.Parameters: redirector Redirector
. sourcefile String
.
FilterChain
.Returns: FilterChain
.
FilterChain
.Returns: FilterChain
.
Parameters: destfile File
Returns: Mapper
.
FilterChain
.Returns: FilterChain
.
Parameters: stk the stack of data types to use (recursively). p the project to use to dereference the references.
Throws: BuildException on error.
Parameters: alwaysLog boolean
Since: Ant 1.6.3
Parameters: append if true output and error streams are appended to their respective files, if specified.
Parameters: createEmptyFiles boolean
.
Parameters: error the file to which error is to be written.
Parameters: errorEncoding String
.
Parameters: errorProperty the name of the property to be set with the error output.
Parameters: input the file from which input is read.
Parameters: inputEncoding String
.
Parameters: inputString the string which is used as the input source
Parameters: logError if true the standard error is sent to the Ant log system and not sent to output.
Parameters: logInputString true or false.
Since: Ant 1.7
Parameters: out the file to which output stream is written.
Parameters: outputEncoding String
.
Parameters: outputProperty the name of the property to be set with the task's output.
You must not set another attribute or nest elements inside this element if you make it a reference.
Parameters: r the reference to use.
Throws: BuildException on error.
File[]
from the specified set of filenames.Parameters: name String[]
Returns: File[]
.