void setOutputProperty(String outputProperty) { if (isReference()) { throw tooManyAttributes(); } this.outputProperty = outputProperty; } /** * Whether output should be appended to or overwrite an existing file. * Defaults to false. * @param append if true output and error streams are appended to their * respective files, if specified. */ public void setAppend(boolean append) { if (isReference()) { throw tooManyAttributes(); } this.append = ((append) ? Boolean.TRUE : Boolean.FALSE);
void setInputEncoding(String inputEncoding) { if (isReference()) { throw tooManyAttributes(); } this.inputEncoding = inputEncoding; } /** * 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 if true the standard error is sent to the Ant log system * and not sent to output. */ public void setLogError(boolean logError) { if (isReference()) { throw tooManyAttributes(); } this.logError = ((logError) ? Boolean.TRUE : Boolean.FALSE);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/RedirectorElement.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/RedirectorElement.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setOutputProperty(String outputProperty) {
1
void setInputEncoding(String inputEncoding) {
2
        if (isReference()) {
2
        if (isReference()) {
3
            throw tooManyAttributes();
3
            throw tooManyAttributes();
4
        }
4
        }
5
        this.outputProperty = outputProperty;
5
        this.inputEncoding = inputEncoding;
6
    }
6
    }
7
    /**
7
    /**
8
     * Whether output should be appended to or overwrite an existing file.
8
     * Controls whether error output 
9
     * Defaults to false
9
of exec is logged. This is only useful
10
     * when output is being redirected and error output is desired in the
10
.
11
     * Ant log.
11
     * @param append if true output and error streams are appended to their
12
     * @param logError if true 
12
     *        respective files, if specified
13
the standard error is sent to the Ant log system
13
.
14
     *        and not sent to output.
14
     */
15
     */
15
    public void setAppend(boolean append) {
16
    public void setLogError(boolean logError) {
16
        if (isReference()) {
17
        if (isReference()) {
17
            throw tooManyAttributes();
18
            throw tooManyAttributes();
18
        }
19
        }
19
        this.append = ((append) ? Boolean.TRUE : Boolean.FALSE);
20
        this.logError = ((logError) ? Boolean.TRUE : Boolean.FALSE);
20
    
21
    
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