/**
* Set the File to which the output of the process is redirected.
*
* @param out the output File.
*/
/**
* File the output of the process is redirected to. If error is not
* redirected, it too will appear in the output.
*
* @param out name of a file to which output should be sent.
*/
public void setOutput(File out) {
this.output = out;
incompatibleWithSpawn = true;
}
/**
* Set the input to use for the task.
*
* @param input name of the input file.
*/
/**
* Set the input file to use for the task.
*
* @param input name of a file from which to get input.
*/
public void setInput(File input) {
if (inputString != null) {
throw new BuildException("The \"input\" and \"inputstring\" " + "attributes cannot both be specified");
}
this.input = input;
incompatibleWithSpawn = true;
}
/**
* Set the string to use as input.
*
* @param inputString the string which is used as the input source.
*/
public void setInputString(String inputString) {
if (input != null) {
throw new BuildException("The \"input\" and \"inputstring\" " + "attributes cannot both be specified");
}
this.inputString = inputString;
incompatibleWithSpawn = true;
}
/**
* Set 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.
*
* @param logError get in the ant log the messages coming from stderr
* in the case that fork = true.
*/
/**
* 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.
*
* @param logError set to true to log error output in the normal ant log.
*/
public void setLogError(boolean logError) {
redirector.setLogError(logError);
incompatibleWithSpawn |= logError;
}
/**
* Set the File to which the error stream of the process is redirected.
*
* @param error file getting the error stream.
*
* @since Ant 1.6
*/
/**
* Set the File to which the error stream of the process should be redirected.
*
* @param error a file to which stderr should be sent.
*
* @since Ant 1.6
*/
public void setError(File error) {
this.error = error;
incompatibleWithSpawn = true;
}
/**
* Set the property name whose value should be set to the output of
* the process.
*
* @param outputProp property name.
*
*/
/**
* Sets the property name whose value should be set to the output of
* the process.
*
* @param outputProp name of property.
*/
public void setOutputproperty(String outputProp) {
redirector.setOutputProperty(outputProp);
incompatibleWithSpawn = true;
}
/**
* Set the property name whose value should be set to the error of
* the process.
*
* @param errorProperty property name.
*
* @since Ant 1.6
*/
/**
* Sets the name of the property whose value should be set to the error of
* the process.
*
* @param errorProperty name of property.
*
* @since Ant 1.6
*/
public void setErrorProperty(String errorProperty) {
redirector.setErrorProperty(errorProperty);
incompatibleWithSpawn = true;
}
|