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();
Path createClasspath() { if (classpath == null) { classpath = new Path(getProject()); } return classpath.createPath(); } /** * Adds a reference to a CLASSPATH defined elsewhere. * * @param r the reference to an instance defining the classpath. */ public void setClasspathRef(Reference r) { createClasspath().setRefid(r); } /** * Set the boot classpath to use. * * @param path the boot classpath. */ public void setBootclasspath(Path path) { if (bootclasspath == null) { bootclasspath = path; } else { bootclasspath.append(path); } } /** * Create a Path to be configured with the boot classpath * * @return a new Path instance to be configured with the boot classpath. */ 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/Javah.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Javadoc.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
Path createClasspath() {
1
Path createClasspath() {
2
        if (classpath == null) {
2
        if (classpath == null) {
3
            classpath = new Path(getProject());
3
            classpath = new Path(getProject());
4
        }
4
        }
5
        return classpath.createPath();
5
        return classpath.createPath();
6
    }
6
    }
7
    /**
7
    /**
8
     * Adds a reference to a classpath defined elsewhere.
8
     * Adds a reference to a CLASSPATH defined elsewhere.
9
     *
9
     * @param r a reference to a classpath.
10
     * @param r the reference to a
10
     * @todo this needs to be documented in the HTML docs.
11
n instance defining the classpath.
11
     */
12
     */
12
    public void setClasspathRef(Reference r) {
13
    public void setClasspathRef(Reference r) {
13
        createClasspath().setRefid(r);
14
        createClasspath().setRefid(r);
14
    }
15
    }
15
    /**
16
    /**
16
     * The classpath to use.
17
     * 
17
     * @return the classpath.
18
     * @since Ant 1.6.3
19
     */
20
    public Path getClasspath() {
21
        return classpath;
22
    }
18
Set the boot classpath to use.
23
    /**
19
     *
24
     * location of bootstrap class files.
25
     * @param src the bootstrap classpath.
20
     * @param path the boot classpath.
26
     */
21
     */
27
    public void setBootclasspath(Path src) {
22
    public void setBootclasspath(Path path) {
28
        if (bootclasspath == null) {
23
        if (bootclasspath == null) {
29
            bootclasspath = src;
24
            bootclasspath = path;
30
        } else {
25
        } else {
31
            bootclasspath.append(src);
26
            bootclasspath.append(path);
32
        }
27
        }
33
    }
28
    }
34
    /**
29
    /**
35
     * Adds path to bootstrap class files.
30
     * 
36
     * @return a path to be configured
31
Create a Path to be configured with the boot classpath
32
     *
37
.
33
     * @return a new Path instance to be configured with the boot classpath.
38
     */
34
     */
39
    public Path createBootclasspath() {
35
    public Path createBootclasspath() {
40
        if (bootclasspath == null) {
36
        if (bootclasspath == null) {
41
            bootclasspath = new Path(getProject());
37
            bootclasspath = new Path(getProject());
42
        }
38
        }
43
        return bootclasspath.createPath();
39
        return bootclasspath.createPath();
44
    
40
    
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