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;
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 fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/ExecTask.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Java.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setOutput(File out) {
1
void setOutput(File out) {
2
        this.output = out;
2
        this.output = out;
3
        incompatibleWithSpawn = true;
3
        incompatibleWithSpawn = true;
4
    }
4
    }
5
    /**
5
    /**
6
     * Set the input file to use for the task.
6
     * Set the input to use for the task.
7
     *
7
     *
8
     * @param input name of a file from which to get input.
8
     * @param input name of the input file.
9
     */
9
     */
10
    public void setInput(File input) {
10
    public void setInput(File input) {
11
        if (inputString != null) {
11
        if (inputString != null) {
12
            throw new BuildException("The \"input\" and \"inputstring\" "
12
            throw new BuildException("The \"input\" and \"inputstring\" "
13
                + "attributes cannot both be specified");
13
                + "attributes cannot both be specified");
14
        }
14
        }
15
        this.input = input;
15
        this.input = input;
16
        incompatibleWithSpawn = true;
16
        incompatibleWithSpawn = true;
17
    }
17
    }
18
    /**
18
    /**
19
     * Set the string to use as input.
19
     * Set the string to use as input.
20
     *
20
     *
21
     * @param inputString the string which is used as the input source.
21
     * @param inputString the string which is used as the input source.
22
     */
22
     */
23
    public void setInputString(String inputString) {
23
    public void setInputString(String inputString) {
24
        if (input != null) {
24
        if (input != null) {
25
            throw new BuildException("The \"input\" and \"inputstring\" "
25
            throw new BuildException("The \"input\" and \"inputstring\" "
26
                + "attributes cannot both be specified");
26
                + "attributes cannot both be specified");
27
        }
27
        }
28
        this.inputString = inputString;
28
        this.inputString = inputString;
29
        incompatibleWithSpawn = true;
29
        incompatibleWithSpawn = true;
30
    }
30
    }
31
    /**
31
    /**
32
     * Controls whether error output of exec is logged. This is only useful when
32
     * Set whether error output of exec is logged. This is only useful
33
     * output is being redirected and error output is desired in the
33
     * when output is being redirected and error output is desired in the
34
 Ant log.
34
     * Ant log.
35
     *
35
     *
36
     * @param logError set to true to log error output in the normal ant log
36
     * @param logError get in the ant log the messages coming from stderr
37
.
37
     * in the case that fork = true.
38
     */
38
     */
39
    public void setLogError(boolean logError) {
39
    public void setLogError(boolean logError) {
40
        redirector.setLogError(logError);
40
        redirector.setLogError(logError);
41
        incompatibleWithSpawn |= logError;
41
        incompatibleWithSpawn |= logError;
42
    }
42
    }
43
    /**
43
    /**
44
     * Set the File to which the error stream of the process should be redirected.
44
     * Set the File to which the error stream of the process is redirected.
45
     *
45
     *
46
     * @param error a file to which stderr should be sent.
46
     * @param error file getting the error stream.
47
     *
47
     *
48
     * @since Ant 1.6
48
     * @since Ant 1.6
49
     */
49
     */
50
    public void setError(File error) {
50
    public void setError(File error) {
51
        this.error = error;
51
        this.error = error;
52
        incompatibleWithSpawn = true;
52
        incompatibleWithSpawn = true;
53
    }
53
    }
54
    /**
54
    /**
55
     * Sets the property name whose value should be set to the output of
55
     * Set the property name whose value should be set to the output of
56
     * the process.
56
     * the process.
57
     *
57
     *
58
     * @param outputProp name of property.
58
     * @param outputProp property name.
59
     *
59
     */
60
     */
60
    public void setOutputproperty(String outputProp) {
61
    public void setOutputproperty(String outputProp) {
61
        redirector.setOutputProperty(outputProp);
62
        redirector.setOutputProperty(outputProp);
62
        incompatibleWithSpawn = true;
63
        incompatibleWithSpawn = true;
63
    }
64
    }
64
    /**
65
    /**
65
     * Sets the name of the property whose value should be set to the error of
66
     * Set the property name whose value should be set to the error of
66
     * the process.
67
     * the process.
67
     *
68
     *
68
     * @param errorProperty name of property.
69
     * @param errorProperty property name.
69
     *
70
     *
70
     * @since Ant 1.6
71
     * @since Ant 1.6
71
     */
72
     */
72
    public void setErrorProperty(String errorProperty) {
73
    public void setErrorProperty(String errorProperty) {
73
        redirector.setErrorProperty(errorProperty);
74
        redirector.setErrorProperty(errorProperty);
74
        incompatibleWithSpawn = true;
75
        incompatibleWithSpawn = true;
75
    
76
    
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0