void setCommand(String e) { throw new BuildException(getTaskType() + " doesn\'t support the command attribute", getLocation()); } /** * Add source file. * This is not allowed, and it always throws a BuildException. * @param b ignored * @ant.attribute ignore="true" */ public 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 setCommand(Commandline cmdl) { throw new BuildException(getTaskType() + " doesn\'t support the command attribute", getLocation()); } /** * This is not allowed for Chmod. * @param skip ignored. * @throws BuildException always. * @ant.attribute ignore="true" */ public 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 setCommand(String e) {
1
void setCommand(Commandline cmdl) {
2
        throw new BuildException(getTaskType()
2
        throw new BuildException(getTaskType()
3
            + " doesn\'t support the command attribute", getLocation());
3
            + " doesn\'t support the command attribute", getLocation());
4
    }
4
    }
5
    /**
5
    /**
6
     * Add source file.
6
     * 
7
     * This is not allowed, and it always 
7
This is not allowed for Chmod.
8
     * @param skip ignored.
8
throws a BuildException.
9
     * @throws BuildException
9
     * @param b ignored
10
 always.
10
     * @ant.attribute ignore="true"
11
     * @ant.attribute ignore="true"
11
     */
12
     */
12
    public void setAddsourcefile(boolean b) {
13
    public void setSkipEmptyFilesets(boolean skip) {
13
        throw new BuildException(getTaskType()
14
        throw new BuildException(getTaskType()
14
            + " doesn\'t support the addsourcefile attribute", getLocation());
15
            + " doesn\'t support the skipemptyfileset attribute", getLocation());
15
    }
16
    }
16
    /**
17
    /**
17
     * Set skip empty file sets.
18
     * 
18
     * This is not allowed, and it always 
19
This is not allowed for Chmod.
20
     * @param b ignored.
19
throws a BuildException.
21
     * @throws BuildException
20
     * @param skip ignored
22
 always.
21
     * @ant.attribute ignore="true"
23
     * @ant.attribute ignore="true"
22
     */
24
     */
23
    public void setSkipEmptyFilesets(boolean skip) {
25
    public void setAddsourcefile(boolean b) {
24
        throw new BuildException(getTaskType()
26
        throw new BuildException(getTaskType()
25
 + " doesn\'t support the "
27
            + " doesn\'t support the 
26
                                 + "skipemptyfileset attribute",
28
addsourcefile attribute",
27
                                 getLocation());
29
 getLocation());
28
    }
30
    }
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