void setCommand(Commandline cmdl) { throw new BuildException(getTaskType() + " doesn\'t support the command attribute", getLocation()); } /** * Prevent the skipping of empty filesets * * @ant.attribute ignore="true" * @param skip A user supplied boolean we won't accept. */ public void setSkipEmptyFilesets(boolean skip) { throw new BuildException(getTaskType() + " doesn\'t support the " + "skipemptyfileset attribute", getLocation()); } /** * Prevent the use of the addsourcefile atribute. * * @ant.attribute ignore="true" * @param b A user supplied boolean we won't accept. */ 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/optional/unix/AbstractAccessTask.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",
3
            + " doesn\'t support the command attribute",
4
                                 getLocation());
4
 getLocation());
5
    }
5
    }
6
    /**
6
    /**
7
     * Prevent the skipping of empty filesets
7
     * 
8
     *
9
     * @ant.attribute ignore="true"
10
     * @param skip A user supplied boolean we won't accept.
8
Add source file.
9
     * This is not allowed, and it always throws a BuildException.
10
     * @param b ignored
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
    }
18
    /**
19
    /**
19
     * Prevent the use of the addsourcefile atribute.
20
     * 
20
     *
21
     * @ant.attribute ignore="true"
22
     * @param b A user supplied boolean we won't accept.
21
Set skip empty file sets.
22
     * This is not allowed, and it always throws a BuildException.
23
     * @param skip ignored
24
     * @ant.attribute ignore="true"
23
     */
25
     */
24
    public void setAddsourcefile(boolean b) {
26
    public void setSkipEmptyFilesets(boolean skip) {
25
        throw new BuildException(getTaskType()
27
        throw new BuildException(getTaskType()
26
            + " doesn\'t support the addsource
28
 + " doesn\'t support the "
27
file attribute",
29
                                 + "skipemptyfileset attribute",
28
 getLocation());
30
                                 getLocation());
29
    
31
    
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