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