|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
org.apache.tools.ant.types.RedirectorElement
public class RedirectorElement
Element representation of a Redirector.
| Field Summary |
|---|
| Fields inherited from class org.apache.tools.ant.types.DataType |
|---|
checked, ref |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
description, location, project |
| Constructor Summary | |
|---|---|
RedirectorElement()
|
|
| 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,
java.lang.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(java.io.File destfile)
Create a merge mapper pointing to the specified destination file. |
FilterChain |
createOutputFilterChain()
Create a nested output FilterChain. |
protected void |
dieOnCircularReference(java.util.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(java.io.File error)
Set the file to which standard error is to be redirected. |
void |
setErrorEncoding(java.lang.String errorEncoding)
Set the error encoding. |
void |
setErrorProperty(java.lang.String errorProperty)
Property name whose value should be set to the error of the process. |
void |
setInput(java.io.File input)
Set the input to use for the task. |
void |
setInputEncoding(java.lang.String inputEncoding)
Set the input encoding. |
void |
setInputString(java.lang.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(java.io.File out)
File the output of the process is redirected to. |
void |
setOutputEncoding(java.lang.String outputEncoding)
Set the output encoding. |
void |
setOutputProperty(java.lang.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 java.io.File[] |
toFileArray(java.lang.String[] name)
Return a File[] from the specified set of filenames. |
| Methods inherited from class org.apache.tools.ant.types.DataType |
|---|
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, setChecked, tooManyAttributes, toString |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
|---|
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RedirectorElement()
| Method Detail |
|---|
public void addConfiguredInputMapper(Mapper inputMapper)
inputMapper - Mapper.public void addConfiguredOutputMapper(Mapper outputMapper)
outputMapper - Mapper.public void addConfiguredErrorMapper(Mapper errorMapper)
errorMapper - Mapper.
public void setRefid(Reference r)
throws BuildException
You must not set another attribute or nest elements inside this element if you make it a reference.
setRefid in class DataTyper - the reference to use.
BuildException - on error.public void setInput(java.io.File input)
input - the file from which input is read.public void setInputString(java.lang.String inputString)
inputString - the string which is used as the input sourcepublic void setLogInputString(boolean logInputString)
logInputString - true or false.public void setOutput(java.io.File out)
out - the file to which output stream is written.public void setOutputEncoding(java.lang.String outputEncoding)
outputEncoding - String.public void setErrorEncoding(java.lang.String errorEncoding)
errorEncoding - String.public void setInputEncoding(java.lang.String inputEncoding)
inputEncoding - String.public void setLogError(boolean logError)
logError - if true the standard error is sent to the Ant log system
and not sent to output.public void setError(java.io.File error)
error - the file to which error is to be written.public void setOutputProperty(java.lang.String outputProperty)
outputProperty - the name of the property to be set with the
task's output.public void setAppend(boolean append)
append - if true output and error streams are appended to their
respective files, if specified.public void setAlwaysLog(boolean alwaysLog)
alwaysLog - booleanpublic void setCreateEmptyFiles(boolean createEmptyFiles)
createEmptyFiles - boolean.public void setErrorProperty(java.lang.String errorProperty)
errorProperty - the name of the property to be set
with the error output.public FilterChain createInputFilterChain()
FilterChain.
FilterChain.public FilterChain createOutputFilterChain()
FilterChain.
FilterChain.public FilterChain createErrorFilterChain()
FilterChain.
FilterChain.public void configure(Redirector redirector)
Redirector.
redirector - Redirector.
public void configure(Redirector redirector,
java.lang.String sourcefile)
Redirector
for the specified sourcefile.
redirector - Redirector.sourcefile - String.protected Mapper createMergeMapper(java.io.File destfile)
destfile - File
Mapper.protected java.io.File[] toFileArray(java.lang.String[] name)
File[] from the specified set of filenames.
name - String[]
File[].
protected void dieOnCircularReference(java.util.Stack stk,
Project p)
throws BuildException
dieOnCircularReference in class DataTypestk - the stack of data types to use (recursively).p - the project to use to dereference the references.
BuildException - on error.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||