void setAddsourcefile(boolean b) { throw new BuildException(getTaskType() + " doesn\'t support the addsourcefile attribute", getLocation()); } /** * Set skip empty file sets. * This is not allowed, and it always throws a BuildException. * @param skip ignored * @ant.attribute ignore="true" */ public void setSkipEmptyFilesets(boolean skip) { throw new BuildException(getTaskType() + " doesn\'t support the " + "skipemptyfileset attribute", getLocation());
void setSkipEmptyFilesets(boolean skip) { throw new BuildException(getTaskType() + " doesn\'t support the skipemptyfileset attribute", getLocation()); } /** * This is not allowed for Chmod. * @param b ignored. * @throws BuildException always. * @ant.attribute ignore="true" */ public void setAddsourcefile(boolean b) { throw new BuildException(getTaskType() + " doesn\'t support the addsourcefile attribute", getLocation());
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/windows/Attrib.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Chmod.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setAddsourcefile(boolean b) {
1
void setSkipEmptyFilesets(boolean skip) {
2
        throw new BuildException(getTaskType()
2
        throw new BuildException(getTaskType()
3
            + " doesn\'t support the addsourcefile attribute", getLocation());
3
            + " doesn\'t support the skipemptyfileset attribute", getLocation());
4
    }
4
    }
5
    /**
5
    /**
6
     * Set skip empty file sets.
6
     * 
7
     * This is not allowed, and it always 
7
This is not allowed for Chmod.
8
     * @param b ignored.
8
throws a BuildException.
9
     * @throws BuildException
9
     * @param skip ignored
10
 always.
10
     * @ant.attribute ignore="true"
11
     * @ant.attribute ignore="true"
11
     */
12
     */
12
    public void setSkipEmptyFilesets(boolean skip) {
13
    public void setAddsourcefile(boolean b) {
13
        throw new BuildException(getTaskType()
14
        throw new BuildException(getTaskType()
14
 + " doesn\'t support the "
15
            + " doesn\'t support the 
15
                                 + "skipemptyfileset attribute",
16
addsourcefile attribute",
16
                                 getLocation());
17
 getLocation());
17
    
18
    
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