public void setExecutable(String e) { throw new BuildException(getTaskType() + " doesn\'t support the executable attribute", getLocation()); } /** * Set the command. * This is not allowed for Chmod. * @param cmdl ignored. * @throws BuildException always. * @ant.attribute ignore="true" */ public void setCommand(Commandline cmdl) { throw new BuildException(getTaskType() + " doesn\'t support the command attribute", getLocation());
public void setExecutable(String e) { throw new BuildException(getTaskType() + " doesn\'t support the executable attribute", getLocation()); } /** * Set the executable. * This is not allowed, and it always throws a BuildException. * @param e ignored * @ant.attribute ignore="true" */ public void setCommand(String e) { throw new BuildException(getTaskType() + " doesn\'t support the command 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
public void setExecutable(String e) {
1
public void setExecutable(String e) {
2
        throw new BuildException(getTaskType()
2
        throw new BuildException(getTaskType()
3
            + " doesn\'t support the executable attribute", getLocation());
3
            + " doesn\'t support the executable attribute", getLocation());
4
    }
4
    }
5
    /**
5
    /**
6
     * Set the command.
6
     * Set the executable.
7
     * This is not allowed for Chmod.
7
     * This is not allowed
8
     * @param cmdl ignored.
9
     * @throws BuildException always.
8
, and it always throws a BuildException.
9
     * @param e ignored
10
     * @ant.attribute ignore="true"
10
     * @ant.attribute ignore="true"
11
     */
11
     */
12
    public void setCommand(Commandline cmdl) {
12
    public void setCommand(String e) {
13
        throw new BuildException(getTaskType()
13
        throw new BuildException(getTaskType()
14
            + " doesn\'t support the command attribute", getLocation());
14
            + " doesn\'t support the command attribute", getLocation());
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