Save This Page
Home » apache-ant-1.8.1 » org.apache.tools » ant » types » [javadoc | source]
org.apache.tools.ant.types
public class: RedirectorElement [javadoc | source]
java.lang.Object
   org.apache.tools.ant.ProjectComponent
      org.apache.tools.ant.types.DataType
         org.apache.tools.ant.types.RedirectorElement

All Implemented Interfaces:
    Cloneable

Element representation of a Redirector.
Fields inherited from org.apache.tools.ant.types.DataType:
ref,  checked
Fields inherited from org.apache.tools.ant.ProjectComponent:
project,  location,  description
Method from org.apache.tools.ant.types.RedirectorElement Summary:
addConfiguredErrorMapper,   addConfiguredInputMapper,   addConfiguredOutputMapper,   configure,   configure,   createErrorFilterChain,   createInputFilterChain,   createMergeMapper,   createOutputFilterChain,   dieOnCircularReference,   setAlwaysLog,   setAppend,   setCreateEmptyFiles,   setError,   setErrorEncoding,   setErrorProperty,   setInput,   setInputEncoding,   setInputString,   setLogError,   setLogInputString,   setOutput,   setOutputEncoding,   setOutputProperty,   setRefid,   toFileArray
Methods from org.apache.tools.ant.types.DataType:
checkAttributesAllowed,   checkChildrenAllowed,   circularReference,   clone,   dieOnCircularReference,   dieOnCircularReference,   dieOnCircularReference,   getCheckedRef,   getCheckedRef,   getCheckedRef,   getCheckedRef,   getDataTypeName,   getRefid,   invokeCircularReferenceCheck,   isChecked,   isReference,   noChildrenAllowed,   pushAndInvokeCircularReferenceCheck,   setChecked,   setRefid,   toString,   tooManyAttributes
Methods from org.apache.tools.ant.ProjectComponent:
clone,   getDescription,   getLocation,   getProject,   log,   log,   setDescription,   setLocation,   setProject
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tools.ant.types.RedirectorElement Detail:
 public  void addConfiguredErrorMapper(Mapper errorMapper) 
    Add the error file mapper.
 public  void addConfiguredInputMapper(Mapper inputMapper) 
    Add the input file mapper.
 public  void addConfiguredOutputMapper(Mapper outputMapper) 
    Add the output file mapper.
 public  void configure(Redirector redirector) 
    Configure the specified Redirector.
 public  void configure(Redirector redirector,
    String sourcefile) 
    Configure the specified Redirector for the specified sourcefile.
 public FilterChain createErrorFilterChain() 
    Create a nested error FilterChain.
 public FilterChain createInputFilterChain() 
    Create a nested input FilterChain.
 protected Mapper createMergeMapper(File destfile) 
    Create a merge mapper pointing to the specified destination file.
 public FilterChain createOutputFilterChain() 
    Create a nested output FilterChain.
 protected  void dieOnCircularReference(Stack stk,
    Project p) throws BuildException 
    Overrides the version of DataType to recurse on all DataType child elements that may have been added.
 public  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. Defaults to false.
 public  void setAppend(boolean append) 
    Whether output should be appended to or overwrite an existing file. Defaults to false.
 public  void setCreateEmptyFiles(boolean createEmptyFiles) 
    Whether output and error files should be created even when empty. Defaults to true.
 public  void setError(File error) 
    Set the file to which standard error is to be redirected.
 public  void setErrorEncoding(String errorEncoding) 
    Set the error encoding.
 public  void setErrorProperty(String errorProperty) 
    Property name whose value should be set to the error of the process.
 public  void setInput(File input) 
    Set the input to use for the task.
 public  void setInputEncoding(String inputEncoding) 
    Set the input encoding.
 public  void setInputString(String inputString) 
    Set the string to use as input
 public  void setLogError(boolean logError) 
    Controls whether error output of exec is logged. This is only useful when output is being redirected and error output is desired in the Ant log.
 public  void setLogInputString(boolean logInputString) 
    Set whether to include the value of the input string in log messages. Defaults to true.
 public  void setOutput(File out) 
    File the output of the process is redirected to. If error is not redirected, it too will appear in the output.
 public  void setOutputEncoding(String outputEncoding) 
    Set the output encoding.
 public  void setOutputProperty(String outputProperty) 
    Property name whose value should be set to the output of the process.
 public  void setRefid(Reference r) throws BuildException 
    Make this instance in effect a reference to another instance.

    You must not set another attribute or nest elements inside this element if you make it a reference.

 protected File[] toFileArray(String[] name) 
    Return a File[] from the specified set of filenames.