void setAppend(boolean append) { if (isReference()) { throw tooManyAttributes(); } this.append = ((append) ? Boolean.TRUE : Boolean.FALSE); } /** * 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. * @param alwaysLog <code>boolean</code> * @since Ant 1.6.3 */ public void setAlwaysLog(boolean alwaysLog) { if (isReference()) { throw tooManyAttributes(); } this.alwaysLog = ((alwaysLog) ? Boolean.TRUE : Boolean.FALSE);
void setAlwaysLog(boolean alwaysLog) { if (isReference()) { throw tooManyAttributes(); } this.alwaysLog = ((alwaysLog) ? Boolean.TRUE : Boolean.FALSE); } /** * Whether output and error files should be created even when empty. * Defaults to true. * @param createEmptyFiles <code>boolean</code>. */ public void setCreateEmptyFiles(boolean createEmptyFiles) { if (isReference()) { throw tooManyAttributes(); } this.createEmptyFiles = ((createEmptyFiles) ? 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 setAppend(boolean append) {
1
void setAlwaysLog(boolean alwaysLog) {
2
        if (isReference()) {
2
        if (isReference()) {
3
            throw tooManyAttributes();
3
            throw tooManyAttributes();
4
        }
4
        }
5
        this.append = ((append) ? Boolean.TRUE : Boolean.FALSE);
5
        this.alwaysLog = ((alwaysLog) ? Boolean.TRUE : Boolean.FALSE);
6
    }
6
    }
7
    /**
7
    /**
8
     * If true, (error and non-error) output will be "teed", redirected
8
     * Whether output and error
9
     * as specified while being sent to Ant's logging mechanism as if no
10
     * redirection had taken place. 
9
 files should be created even when empty.
11
 Defaults to false.
10
     * Defaults to true.
12
     * @param alwaysLog <code>boolean</code>
11
     * @param createEmptyFiles <code>boolean</code>
13
     * @since Ant 1.6.3
12
.
14
     */
13
     */
15
    public void setAlwaysLog(boolean alwaysLog) {
14
    public void setCreateEmptyFiles(boolean createEmptyFiles) {
16
        if (isReference()) {
15
        if (isReference()) {
17
            throw tooManyAttributes();
16
            throw tooManyAttributes();
18
        }
17
        }
19
        this.alwaysLog = ((alwaysLog)
18
        this.createEmptyFiles = ((createEmptyFiles)
20
 ? Boolean.TRUE : Boolean.FALSE);
19
            ? Boolean.TRUE : Boolean.FALSE);
21
    
20
    
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