void setClasspath(Path cp) { if (classpath == null) { classpath = cp; } else { classpath.append(cp); } } /** * Adds a path to the classpath. * @return a path to be configured. */ public Path createClasspath() { if (classpath == null) { classpath = new Path(getProject()); } return classpath.createPath(); } /** * Adds a reference to a classpath defined elsewhere * @param r a reference to a classpath. */ public void setClasspathRef(Reference r) { createClasspath().setRefid(r); } /** * Get the classpath. * @return the classpath. */ public Path getClasspath() { return classpath; } /** * Set the classpath to be used to find this compiler adapter * @param cp the compiler classpath. */ public void setCompilerclasspath(Path cp) { if (compilerClasspath == null) { compilerClasspath = cp; } else { compilerClasspath.append(cp); } } /** * get the classpath used to find the compiler adapter * @return the compiler classpath. */ public Path getCompilerclasspath() { return compilerClasspath; } /** * Support nested compiler classpath, used to locate compiler adapter * @return a path to be configured. */ public Path createCompilerclasspath() { if (compilerClasspath == null) { compilerClasspath = new Path(getProject()); } return compilerClasspath.createPath();
void setClasspath(Path src) { if (classpath == null) { classpath = src; } else { classpath.append(src); } } /** * Path to use for classpath. * @return a path to be configured. */ public Path createClasspath() { if (classpath == null) { classpath = new Path(getProject()); } return classpath.createPath(); } /** * Adds a reference to a classpath defined elsewhere. * @param r a reference to a classpath. * @todo this needs to be documented in the HTML docs. */ public void setClasspathRef(Reference r) { createClasspath().setRefid(r); } /** * The classpath to use. * @return the classpath. * @since Ant 1.6.3 */ public Path getClasspath() { return classpath; } /** * location of bootstrap class files. * @param src the bootstrap classpath. */ public void setBootclasspath(Path src) { if (bootclasspath == null) { bootclasspath = src; } else { bootclasspath.append(src); } } /** * Adds path to bootstrap class files. * @return a path to be configured. */ public Path createBootclasspath() { if (bootclasspath == null) { bootclasspath = new Path(getProject()); } return bootclasspath.createPath();
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/Javah.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setClasspath(Path cp) {
1
void setClasspath(Path src) {
2
        if (classpath == null) {
2
        if (classpath == null) {
3
            classpath = cp;
3
            classpath = src;
4
        } else {
4
        } else {
5
            classpath.append(cp);
5
            classpath.append(src);
6
        }
6
        }
7
    }
7
    }
8
    /**
8
    /**
9
     * Adds a path to the classpath.
9
     * Path to use for classpath.
10
     * @return a path to be configured.
10
     * @return a path to be configured.
11
     */
11
     */
12
    public Path createClasspath() {
12
    public Path createClasspath() {
13
        if (classpath == null) {
13
        if (classpath == null) {
14
            classpath = new Path(getProject());
14
            classpath = new Path(getProject());
15
        }
15
        }
16
        return classpath.createPath();
16
        return classpath.createPath();
17
    }
17
    }
18
    /**
18
    /**
19
     * Adds a reference to a classpath defined elsewhere
19
     * Adds a reference to a classpath defined elsewhere.
20
     * @param r a reference to a classpath.
20
     * @param r a reference to a classpath.
21
     * @todo this needs to be documented in the HTML docs.
21
     */
22
     */
22
    public void setClasspathRef(Reference r) {
23
    public void setClasspathRef(Reference r) {
23
        createClasspath().setRefid(r);
24
        createClasspath().setRefid(r);
24
    }
25
    }
25
    /**
26
    /**
26
     * Get the classpath.
27
     * The classpath to use.
27
     * @return the classpath.
28
     * @return the classpath.
29
     * @since Ant 1.6.3
28
     */
30
     */
29
    public Path getClasspath() {
31
    public Path getClasspath() {
30
        return classpath;
32
        return classpath;
31
    }
33
    }
32
    /**
34
    /**
33
     * Set the classpath to be used to find this compiler adapter
35
     * location of bootstrap class files.
34
     * @param cp the compiler classpath.
36
     * @param src the bootstrap classpath.
35
     */
37
     */
36
    public void setCompilerclasspath(Path cp) {
38
    public void setBootclasspath(Path src) {
37
        if (compilerClasspath == null) {
39
        if (bootclasspath == null) {
38
            compilerClasspath = cp;
40
            bootclasspath = src;
39
        } else {
41
        } else {
40
            compilerClasspath.append(cp);
42
            bootclasspath.append(src);
41
        }
43
        }
42
    }
44
    }
43
    /**
45
    /**
44
     * get the classpath used to find the compiler adapter
46
     * 
45
     * @return the compiler classpath.
46
     */
47
    public Path getCompilerclasspath() {
48
        return compilerClasspath;
49
    }
50
    /**
51
     * Support nested compiler classpath, used to locate compiler adapter
47
Adds path to bootstrap class files.
52
     * @return a path to be configured.
48
     * @return a path to be configured.
53
     */
49
     */
54
    public Path createCompilerclasspath() {
50
    public Path createBootclasspath() {
55
        if (compilerClasspath == null) {
51
        if (bootclasspath == null) {
56
            compilerClasspath = new Path(getProject());
52
            bootclasspath = new Path(getProject());
57
        }
53
        }
58
        return compilerClasspath.createPath();
54
        return bootclasspath.createPath();
59
    
55
    
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