CloneSet40


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
81201.000class_body_declarations[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
178175
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/ExecTask.java
281463
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Java.java
Next
Last
Clone Instance
1
Line Count
78
Source Line
175
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/ExecTask.java

/**
 * 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 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;
}

/**
 * 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 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;
}

/**
 * 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;
}

/**
 * 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;
}


First
Previous
Clone Instance
2
Line Count
81
Source Line
463
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Java.java

/**
 * Set the File to which the output of the process is redirected.
 *
 * @param out the output File.
 */
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.
 */
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.
 */
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
 */
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.
 *
 */
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
 */
public void setErrorProperty(String errorProperty) {
  redirector.setErrorProperty(errorProperty);
  incompatibleWithSpawn = true;
}


Clone AbstractionParameter Count: 0Parameter Bindings

/**
     * 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;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None