void setLocalTodir(String aToUri) { setToUri(aToUri); this.isToRemote = false; } /** * Similiar to {@link #setTodir setTodir} but explicitly states * that the directory is a remote. * @param aToUri a string representing the target of the copy. * @since Ant 1.6.2 */ public void setRemoteTodir(String aToUri) { setToUri(aToUri); this.isToRemote = true; } /** * Changes the file name to the given name while receiving it, * only useful if receiving a single file. * @param aToUri a string representing the target of the copy. * @since Ant 1.6.2 */ public void setLocalTofile(String aToUri) { setToUri(aToUri); this.isToRemote = false;
void setRemoteTodir(String aToUri) { setToUri(aToUri); this.isToRemote = true; } /** * Changes the file name to the given name while receiving it, * only useful if receiving a single file. * @param aToUri a string representing the target of the copy. * @since Ant 1.6.2 */ public void setLocalTofile(String aToUri) { setToUri(aToUri); this.isToRemote = false; } /** * Changes the file name to the given name while sending it, * only useful if sending a single file. * @param aToUri a string representing the target of the copy. * @since Ant 1.6.2 */ public void setRemoteTofile(String aToUri) { setToUri(aToUri); this.isToRemote = true;
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ssh/Scp.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ssh/Scp.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setLocalTodir(String aToUri) {
2
        setToUri(aToUri);
3
        this.isToRemote = false;
4
    }
5
    /**
6
     * Similiar to {@link #setTodir setTodir} but explicitly states
7
     * that the directory is a remote.
8
     * @param aToUri a string representing the target of the copy.
9
     * @since Ant 1.6.2
10
     */
11
    public void setRemoteTodir(String aToUri) {
1
void setRemoteTodir(String aToUri) {
12
        setToUri(aToUri);
2
        setToUri(aToUri);
13
        this.isToRemote = true;
3
        this.isToRemote = true;
14
    }
4
    }
15
    /**
5
    /**
16
     * Changes the file name to the given name while receiving it,
6
     * Changes the file name to the given name while receiving it,
17
     * only useful if receiving a single file.
7
     * only useful if receiving a single file.
18
     * @param aToUri a string representing the target of the copy.
8
     * @param aToUri a string representing the target of the copy.
19
     * @since Ant 1.6.2
9
     * @since Ant 1.6.2
20
     */
10
     */
21
    public void setLocalTofile(String aToUri) {
11
    public void setLocalTofile(String aToUri) {
22
        setToUri(aToUri);
12
        setToUri(aToUri);
23
        this.isToRemote = false;
13
        this.isToRemote = false;
24
    
14
    }
15
    /**
16
     * Changes the file name to the given name while sending it,
17
     * only useful if sending a single file.
18
     * @param aToUri a string representing the target of the copy.
19
     * @since Ant 1.6.2
20
     */
21
    public void setRemoteTofile(String aToUri) {
22
        setToUri(aToUri);
23
        this.isToRemote = true;
24
    
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